Hello All,
I am currently using Access 2000. I have a mailing list database which I would like to add a simple audit trail to record when a user exports out the whole database into Excel. This is important to the Management to maintain security of the information of the clients in the database. Currently, I have a form which contains a button. When the button is depressd it then runs a query and then exports the complete database into the client's local hard drive. Here is the current code:
Private Sub Command6_Click()
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryDBTOEXCEL", "c:\COMPLETE_DB.xls"
MsgBox "Your Spreadsheet has been created and is located on your local computer hard drive C:\COMPLETE_DB.xls"
End Sub
I currently have a table named tblExport with the fields:
date, user, and computer name. How can I update this table tblExport each time when the user depress this button?
I am new to VBA and any help is appreciated in advance. Thank you very much for your time.
I am currently using Access 2000. I have a mailing list database which I would like to add a simple audit trail to record when a user exports out the whole database into Excel. This is important to the Management to maintain security of the information of the clients in the database. Currently, I have a form which contains a button. When the button is depressd it then runs a query and then exports the complete database into the client's local hard drive. Here is the current code:
Private Sub Command6_Click()
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryDBTOEXCEL", "c:\COMPLETE_DB.xls"
MsgBox "Your Spreadsheet has been created and is located on your local computer hard drive C:\COMPLETE_DB.xls"
End Sub
I currently have a table named tblExport with the fields:
date, user, and computer name. How can I update this table tblExport each time when the user depress this button?
I am new to VBA and any help is appreciated in advance. Thank you very much for your time.