Hello, novice here, and new member of AccessForums.net. Thank you for the access to your forums.
My database has 4 tables of which I created queries to gather the information I need out of those tables. I created a form to do all the queries in the background and have created the commands to export the files. Which is where the rub is. If my table is empty, I want the code to ignore exporting the table and move on.
Here is the export code:
strPath = "C:\Users\me\Desktop\Export\Raw Data Path.xlsx"
DoCmd.TransferSpreadsheet acExport, 10, "tbl A Path", strPath, True, "A Path"
DoCmd.TransferSpreadsheet acExport, 10, "tbl B Path", strPath, True, "B Path"
Thank you...