Backup Table Data

D

Donna

Does anyone know how to create a backup of table data
simultaneously as it is being recorded?

Any ideas will be appreciated.
 
A

Arvin Meyer

Donna said:
Does anyone know how to create a backup of table data
simultaneously as it is being recorded?

Any ideas will be appreciated.

It depends upon how you want to back it up. If you want to back it up to a
text file you can use I/O methods (Open #1 For Write) etc. You can also
write the date to another table using SQL (INSERT INTO tblWhatever Values
....) Or the AddNew Method:

Dim db As DAO.Database
Dim rst As DAO.Recordset

rst = db.OpenRecordset ("tblWhatever")

rst.AddNew
fld1 = Me.txt1
fld2 = Me.txt2
'... etc.
rst.Update

--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top