I am enhancing an old application in which the user begins by importing new inventory data into two tables. If I place the line:
DoCmd.RunCommand acImport
twice (one for each .xls that needs to be imported into a table), it doesn’t wait for the Import Dialogs to be displayed and used. It just flies through all the code (there is more after these lines) and I end up with no data imported.
How can I make it Wait for those Import Dialogs to be displayed and used? If my approach is wrong, please tell me a better method for accomplishing this. TIA