Yes its a bank statement, that we download daily direct from the bank,
sometimes we don't end up with the correct days transactions and want to see
the date and values before allowing the macro to continue. The macro add
our id codes to the data, exports it to the mainframe as fixed text file and
the mainframe attaches the transactions to the database.
I only need to display the first line from each file, unfortunately we don't
know how many files the bank is going to send each day, so we have to do
each one individually. I can do it in a query but I wanted to do it in a
messagebox displayed whilst the macro was running giving the option to kill
the macro if the data was incorrect.
This is the code from the query.
SELECT TOP 1 NLMBANK1.TRANSDATE, NLMBANK1.AMOUNT, NLMBANK1.DETAILS,
NLMBANK1.TRANSCODE, NLMBANK1.CHEQUENO
FROM NLMBANK1
WHERE (((NLMBANK1.TRANSCODE) Not Like "CC" And (NLMBANK1.TRANSCODE) Not Like
"MSC" And (NLMBANK1.TRANSCODE) Not Like "CHG"));
Wendy