Database Window - Hide

G

Guest

Dear All,

I am having problems trying to hide my database window. At the moment I
have set up User-Level Security, got code that disables bypass keys i.e.
Shift and F11, but the users can still display the database window by
pressing ALT + Tab, what am i doing wrong?

Thanks
 
G

Guest

Yes, I have a start-up form in place and have the following code attached;

Private Sub Form_Load()
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide
End Sub

Private Sub Form_Timer()
DoCmd.Close acForm, "Startup"
DoCmd.OpenForm "Switchboard"
End Sub

As far as I can tell the form opens up, hides the database window, stays on
for about 5secs and then opens up the Switchboard. I have checked this site
before and based on their comments have commented out the following lines in
the Switchboard.

' DoCmd.SelectObject acForm, "Switchboard", True
' DoCmd.Minimize

Hope this helps!!

Thanks
 

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