Hi Access Experts,
I use temporary files a lot, which sit in a linked database so as to avoid DB bloat.
Since I may re-use them over the course of a session, I start by deleting all records in the temporary file. See attached doc.
When I subsequently import an Excel sheet into that file, I can open the file manually and control that the import was successful.
When I then want to use that file in the same program, I invariably get problems. Being a self-taught Access programmer, I must be overlooking something basic.
The problem is that when I use this temporary file in a loop, the program does not seem to find the right values. In this example when it compares the order number from the window calling the program and the one stored in the temporary file, it returns a blank for the latter.
I find this strange, because when I look for the record count of the temporary file before the loop, it correctly gives the count, and I know the order number stored in the temporary file is the same, or at least, entirely looks the same.
What am I missing?
I use temporary files a lot, which sit in a linked database so as to avoid DB bloat.
Since I may re-use them over the course of a session, I start by deleting all records in the temporary file. See attached doc.
When I subsequently import an Excel sheet into that file, I can open the file manually and control that the import was successful.
When I then want to use that file in the same program, I invariably get problems. Being a self-taught Access programmer, I must be overlooking something basic.
The problem is that when I use this temporary file in a loop, the program does not seem to find the right values. In this example when it compares the order number from the window calling the program and the one stored in the temporary file, it returns a blank for the latter.
I find this strange, because when I look for the record count of the temporary file before the loop, it correctly gives the count, and I know the order number stored in the temporary file is the same, or at least, entirely looks the same.
What am I missing?