Well, one other option you have is to use a startup form instead of the
autoexec macro. Create a startup form and select that for the startup
option (either deleting or renaming your autoexec macro so that it does
not execute). In the startup form you can use VBA in the Form's Load
event with an Error Trap to Resume Next but log any errors that may
occur:
-----------------------------------------
Private frmStartup_Load()
On Error GoTo errLbl
...
call your function or just run whatever in this event
Exit
errLbl:
DoCmd.RunSql "Insert Into tbl_ErrLogs(ErrDescrp, ErrDate)
Select '" & Err.Description & "', #" & Date & "#"
Resume Next
End Sub
-----------------------------------------
Rich
*** Sent via Developersdex
http://www.developersdex.com ***
>> Stay informed about: Strange Startup Problem