T
Tom
I need to make some modifications to the code of the Access Switchboard.
Currently, the function below minimizes the Switchboard but leaves the
Switchboard form open (not sure if I use the right terminology here... maybe
it minimizes the Database Window and leaves the Switchboard form open).
Anyhow, in the Startup screen, I have deselected all possible checkmarks,
but selected "Switchboard" for the "Display Form/Page:".
Now this is what happens when the end user opens up the database.
- Almost all toolbars disappears - which is desired
- The actual Switchboard form is activated - which is desired
- The (whatever it's called...) Switchboard or Database window is
minimized - I do NOT want that. I rather also have that one minimized
option "disappear". That will reduce the chances that end-users have an
opportunity to access any tables, forms, queries, etc. (unless they
press/hold SHIFT when opening the application... most of the users won't
know that shortcut though... I hope so at least).
So, my questions are the following:
1. How can I modify the Form_Open function so that everything disappears
from the screen except the "actual" Switchboard.
2. Also, even though I unchecked all options from the Startup menu (e.g.
"Allow Full Menu" etc), I still see the "File, Window, Help" in the toolbar.
Yes, the options have been quite reduced but still I think I don't want to
show any options in the toolbar. Does anyone know how to excluded these 3
options ("File, Window, Help") as well?
Thanks,
Tom
&&&&&&&&&&&&&&&&&&&&&&&&&&&
Private Sub Form_Open(Cancel As Integer)
' Minimize the database window and initialize the form.
On Error GoTo Form_Open_Err
' Minimize the database window.
DoCmd.SelectObject acForm, "Switchboard", True
DoCmd.Minimize
' Move to the switchboard page that is marked as the default.
Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Default' "
Me.FilterOn = True
Form_Open_Exit:
Exit Sub
Form_Open_Err:
MsgBox Err.Description
Resume Form_Open_Exit
End Sub
Currently, the function below minimizes the Switchboard but leaves the
Switchboard form open (not sure if I use the right terminology here... maybe
it minimizes the Database Window and leaves the Switchboard form open).
Anyhow, in the Startup screen, I have deselected all possible checkmarks,
but selected "Switchboard" for the "Display Form/Page:".
Now this is what happens when the end user opens up the database.
- Almost all toolbars disappears - which is desired
- The actual Switchboard form is activated - which is desired
- The (whatever it's called...) Switchboard or Database window is
minimized - I do NOT want that. I rather also have that one minimized
option "disappear". That will reduce the chances that end-users have an
opportunity to access any tables, forms, queries, etc. (unless they
press/hold SHIFT when opening the application... most of the users won't
know that shortcut though... I hope so at least).
So, my questions are the following:
1. How can I modify the Form_Open function so that everything disappears
from the screen except the "actual" Switchboard.
2. Also, even though I unchecked all options from the Startup menu (e.g.
"Allow Full Menu" etc), I still see the "File, Window, Help" in the toolbar.
Yes, the options have been quite reduced but still I think I don't want to
show any options in the toolbar. Does anyone know how to excluded these 3
options ("File, Window, Help") as well?
Thanks,
Tom
&&&&&&&&&&&&&&&&&&&&&&&&&&&
Private Sub Form_Open(Cancel As Integer)
' Minimize the database window and initialize the form.
On Error GoTo Form_Open_Err
' Minimize the database window.
DoCmd.SelectObject acForm, "Switchboard", True
DoCmd.Minimize
' Move to the switchboard page that is marked as the default.
Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Default' "
Me.FilterOn = True
Form_Open_Exit:
Exit Sub
Form_Open_Err:
MsgBox Err.Description
Resume Form_Open_Exit
End Sub