E
Eric G
I want to hide the main Access application window immediately after opening a
form in my database. The form name is frm_Welcome. I am using code from
this link:
http://www.mvps.org/access/api/api0019.htm
I have tried putting the statment "fSetAccessWindow(SW_HIDE)" in just about
every event in the "frm_Welcome" class, including Open, Load, Current,
Activate, etc. No matter where I put the statement, I always get the error
message "Cannot hide Access unless a form is on screen". Where do I place
this statement in order to make it work? The problem is that the form
doesn't display on the screen after any of the initial events. That's why I
get the error message.
After I get that error message, the form shows up as usual, but the Access
window is not hidden. I have set the form to Modal and Popup.
Thanks in advance,
Eric
form in my database. The form name is frm_Welcome. I am using code from
this link:
http://www.mvps.org/access/api/api0019.htm
I have tried putting the statment "fSetAccessWindow(SW_HIDE)" in just about
every event in the "frm_Welcome" class, including Open, Load, Current,
Activate, etc. No matter where I put the statement, I always get the error
message "Cannot hide Access unless a form is on screen". Where do I place
this statement in order to make it work? The problem is that the form
doesn't display on the screen after any of the initial events. That's why I
get the error message.
After I get that error message, the form shows up as usual, but the Access
window is not hidden. I have set the form to Modal and Popup.
Thanks in advance,
Eric