Trying to run this query to create a table which would be a backup copy of my table from the current database, but create the copy in another database. I want to run this automatically on my formclose() event.....
Code:Dim db As Database Set db = CurrentDb DoCmd.SetWarnings False db.Execute "qryBackupTable", dbFailOnError Set db = Nothing DoCmd.SetWarnings True
But I get an error table already exists, how to overwrite table so this error does not occur?