I want my autoexec macro to write the user name and date to a table whenever the database is opened. I fine-tuned the code with a click event:
The click event works great but I want to automate the issue so it fires in the background without the user's knowledge. I put the code in a (non click) Sub Procedure but I can't figure out how to call or execute the Sub Procedure from the macro. Help appreciated.
Tom
tomco22
Code:
Private Sub User_Click()
...irrelevant code
txtUser = fOSUserName
txtDate = Now()
...irrelevant code
End Sub
Tom
tomco22