Thaks Norie,
I am so carried away with Excel ..I thought it was called
Autpen like in Excel Not
Autoexec.!
I still have an issue however: I have an
AutoExec Macro with two Actions :
RunCode and
OpenForm.
1-The
RunCode action is supposed to run the
Hide_App procedure in Module1. This proc is basically meant to hide the Access application. Below is the code :
Code:
Option Compare Database
Public Sub Hide_App()
Beep
MsgBox "Access will disappear!"
Application.Visible = False
End Sub
Public Function Call_Hide_App()
Call Hide_App
End Function
2-The
OpenForm action is supposed to show a form called
frmWelcome after the application is hidden.
When I open the DB file and the AutoExec macro fires, I get an error at the
Application.Visible = False code line. The error message I get is: "You entered an expression that has an invalid reference to the property Visible "
Note that I had to use VBA code to hide the Application because I couldn't find an
Action to do that in the Macro builder.
I also thought of trigering this
Hide_App procedure upon showing the welcome form but I couldn't find the matching event property in the form's properties box.
Any ideas why I get this error or how I could solve this problem ?
Regards.