Can't get form to hide

G

Guest

I have a form "Authorizaton", which happens to be the autoexec form on my
database that authenticates the user silently (checks the windows login name
against a user table), then logs the user's entry in a log table. I want it
to stay loaded, but invisible for the user's entire session. I can't seem to
make it invisible. I tried to set the .visible property to false at design
time, but it's not apparently availble at design time. I did set the .visible
property to false in the "load" event event, though it didn't work in the
"open" event, either.)

e.g:

Private Sub Form_Load()
Me.visible=false
[authenticate the user and log his/her entry using
docmd.gotorec,,acNewRec]
DoCmd.openform "switchboard"
end sub

private sub form_unload()
me.visible=false
[record user's logout event the same way]
end sub

I can't figure it out!
 
R

ruralguy via AccessMonster.com

Can you load it with the AutoExec macro as hidden?
I have a form "Authorizaton", which happens to be the autoexec form on my
database that authenticates the user silently (checks the windows login name
against a user table), then logs the user's entry in a log table. I want it
to stay loaded, but invisible for the user's entire session. I can't seem to
make it invisible. I tried to set the .visible property to false at design
time, but it's not apparently availble at design time. I did set the .visible
property to false in the "load" event event, though it didn't work in the
"open" event, either.)

e.g:

Private Sub Form_Load()
Me.visible=false
[authenticate the user and log his/her entry using
docmd.gotorec,,acNewRec]
DoCmd.openform "switchboard"
end sub

private sub form_unload()
me.visible=false
[record user's logout event the same way]
end sub

I can't figure it out!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top