The following codes will transfer the text file into my database. But if I run this code again, it will append the records to the existing table again. I want to check the database to see if there's such a table, if so, I will delete it and then transfer the text file into the database. Is it possible to check the database objects??
Thanks for your help!
MyValue = InputBox(Message, Title, Default)
myFile = "C:\" & MyValue & ".txt"
DoCmd.TransferText acImportDelim, "OT_ImportSpecification", MyValue, myFile, False, ""
Thanks for your help!
MyValue = InputBox(Message, Title, Default)
myFile = "C:\" & MyValue & ".txt"
DoCmd.TransferText acImportDelim, "OT_ImportSpecification", MyValue, myFile, False, ""