Dmonkyking
Technical User
Hi,
I have an Access database that I have that when you exit it it'll ask you if you want to back up the database. That all works great using the following command (all on one line):
DoCmd.CopyObject "E:\F-16ais\Additional Duties\PMEL\Tracking Database\Backup.mdb", "", acTable, "MAIN INVENTORY TABLE"
As you see, if I wanted to move this database to somewhere else or the backup file is missing it's not goona backup the database. Does anyone know any easier way to do this. For example, maybe making the main database create the backup database in the dir that the main database is in. If the backup database doesn't exist, it'll create it instead of saying it doesn't exist. Hope that makes sense. If anyone can help me out that would be great.
I have an Access database that I have that when you exit it it'll ask you if you want to back up the database. That all works great using the following command (all on one line):
DoCmd.CopyObject "E:\F-16ais\Additional Duties\PMEL\Tracking Database\Backup.mdb", "", acTable, "MAIN INVENTORY TABLE"
As you see, if I wanted to move this database to somewhere else or the backup file is missing it's not goona backup the database. Does anyone know any easier way to do this. For example, maybe making the main database create the backup database in the dir that the main database is in. If the backup database doesn't exist, it'll create it instead of saying it doesn't exist. Hope that makes sense. If anyone can help me out that would be great.