Hi!
You can use the following code:
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("YourTable", dbOpenDynaset)
With rst
.AddNew
!fldComputerName = YourComputerName
!fldUserName = YourUserName
!fldDate = Date()
.Update
End With
Set rst = Nothing
If you have a form that opens when the Db opens then just add this code to the open event of the form. This is the easiest method but, if you do not have and do not want such a form, then put the code in a public function (yes function is absolutely necessary) and create a macro called autoexec. Use the RunCode action and in the Function Name box put the name of your public function.
hth
Jeff Bridgham
bridgham@purdue.edu