So I have a File QC to validate all the required fields are actually present and in the proper format. After the Query runs it places any bad records in a table. What I would like to do is export this table using VBA to a file to send bad to the client to show them any bad records so they can edit them and send them back.
Command Click 42()
DoCmd.TransferText acExportDelim, "", "QC_Table", "C:\Users\moore\Desktop\EST-" & Format$(Date, "MMM-dd-yy") & ".txt", False
MsgBox "Exported to C:\Users\moore\Desktop\EST-" & Format$(Date, "MMM-dd-yy") & ".txt"
End Sub
I use this to export just fine however I want it to only run if the table has at least 1 record. I know I should use and if statement I am just unsure of how to say if the table is populate.
Thanks for any help in this matter!