G
Guest
I have a database function I'm trying to create which will upload a batch of
files with a naming convention of "BDMMDDYY.TXT". The upload itself is not a
problem, but I also need to add the transaction date of the file and the date
of the upload to the table as each file is uploaded. The file is uploaded to
a temp table, which the transaction date and current date are then added to
through an update query. However, those queries were originally getting their
update dates from a form. Now I want to run them through my auto-upload code,
and they error out because the form is not open. Is there a way to use the
variables used to get the filenames to be uploaded to generate the date for
the update query as well? The code that gets the filenames looks like this:
strDestinationName = "C:\Import\" & strFileType & strFileDateMonth &
strFileDateDay & "05.txt"
I want to have the update use strFileDateMonth and strFileDateDay to update
the date of the transaction, since these variables control what file is
uploaded, and each file's filename is date-coded. The dates are not contained
in the files. Any suggestions?
files with a naming convention of "BDMMDDYY.TXT". The upload itself is not a
problem, but I also need to add the transaction date of the file and the date
of the upload to the table as each file is uploaded. The file is uploaded to
a temp table, which the transaction date and current date are then added to
through an update query. However, those queries were originally getting their
update dates from a form. Now I want to run them through my auto-upload code,
and they error out because the form is not open. Is there a way to use the
variables used to get the filenames to be uploaded to generate the date for
the update query as well? The code that gets the filenames looks like this:
strDestinationName = "C:\Import\" & strFileType & strFileDateMonth &
strFileDateDay & "05.txt"
I want to have the update use strFileDateMonth and strFileDateDay to update
the date of the transaction, since these variables control what file is
uploaded, and each file's filename is date-coded. The dates are not contained
in the files. Any suggestions?