Using Microsoft Access, VBA and SQL - what is the simplest way to create a backup table that is appropriately named -


i'm looking simple , creative way backup table using vba and/or sql.

i need backup table name include backup table name, date , time backed , number of records table held @ time of backup.

i'm using...

    currentdb.execute ("select * [tblname bu " & cstr(format(now(), "yyyymmdd hhmmss")) & " records=> " & currentdb.openrecordset("tblnameimbackingup").recordcount & "] tblnameimbackingup;") 

is there better?

you can try docmd.copyobject make , exact copy.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -