G
Guest
I have a function I'm coding which copies two files from the server to a
location on the local drive, imports them into Access (I have to copy the
files because they aren't saved as .txt files on the network, even though
they're in text format, so Access won't import them unless I rename them),
and then compares the two files. Then whatever records in the first file
match the account numbers in the second file are put into a new table and
exported to a .txt file. My problem is, the second file contains decline
codes, and I only need to match up the records that correspond to three codes
in this field. If none of those three codes exist, the function needs to exit
without attempting to export anything. Instead I end up exporting a blank
file. What I want to do is look at the export table and, if the table is
empty, exit the function. How do I do this?
location on the local drive, imports them into Access (I have to copy the
files because they aren't saved as .txt files on the network, even though
they're in text format, so Access won't import them unless I rename them),
and then compares the two files. Then whatever records in the first file
match the account numbers in the second file are put into a new table and
exported to a .txt file. My problem is, the second file contains decline
codes, and I only need to match up the records that correspond to three codes
in this field. If none of those three codes exist, the function needs to exit
without attempting to export anything. Instead I end up exporting a blank
file. What I want to do is look at the export table and, if the table is
empty, exit the function. How do I do this?