I am running a program in Access 2016. It creates a new database and copies objects into the new database.
When it runs the below command:
DoCmd.CopyObject sampledbfile, , acTable, "tblk_AuditTypes"
Access displays Run-time error 3049. "Cannot open database 'tblk_AuditTypes'. It may not be a database that your application recognizes, or the file may be corrupt."
It is a small table that I can open manually. It has only three entries. The new database gets corrupt, which I think causes the error.
I have not had the issue in previous versions of Access. Does anyone know why this is happening?
Thanks for any help you can provide.
Bill
When it runs the below command:
DoCmd.CopyObject sampledbfile, , acTable, "tblk_AuditTypes"
Access displays Run-time error 3049. "Cannot open database 'tblk_AuditTypes'. It may not be a database that your application recognizes, or the file may be corrupt."
It is a small table that I can open manually. It has only three entries. The new database gets corrupt, which I think causes the error.
I have not had the issue in previous versions of Access. Does anyone know why this is happening?
Thanks for any help you can provide.
Bill