T
Tony_VBACoder
Can anyone tell me why the acDialog argument when used to
Open a Form, causes a Custom MenuBar/ToolBar to not load
with the Form that is opened? I need to have my Form2 be
Dialog while it is opened, so the user has to do something
with this form and then close it, which will return them
back to my Form1. If I open Form2 by itself, the Custom
MenuBar/ToolBar loads fine.
My situation is below:
I have 2 Forms who each have there own custom MenuBar and
ToolBar. The code I am using in my "btnOpenForm" button
on Form1 to open Form2 with some criteria, is below:
Private Sub btnOpenForm_Click()
' Minimize the Form
DoCmd.Minimize
' Open the 2nd Form and pass it a Where clause
DoCmd.OpenForm "Form1", , , "[MyID] = " & iID, acFormEdit,
acDialog
End Sub
However, if I change the .OpenForm code to remove the
acDialog argument, the form's MenuBar and ToolBar are
loaded:
DoCmd.OpenForm "Form1", , , "[MyID] = " & iID, acFormEdit
Open a Form, causes a Custom MenuBar/ToolBar to not load
with the Form that is opened? I need to have my Form2 be
Dialog while it is opened, so the user has to do something
with this form and then close it, which will return them
back to my Form1. If I open Form2 by itself, the Custom
MenuBar/ToolBar loads fine.
My situation is below:
I have 2 Forms who each have there own custom MenuBar and
ToolBar. The code I am using in my "btnOpenForm" button
on Form1 to open Form2 with some criteria, is below:
Private Sub btnOpenForm_Click()
' Minimize the Form
DoCmd.Minimize
' Open the 2nd Form and pass it a Where clause
DoCmd.OpenForm "Form1", , , "[MyID] = " & iID, acFormEdit,
acDialog
End Sub
However, if I change the .OpenForm code to remove the
acDialog argument, the form's MenuBar and ToolBar are
loaded:
DoCmd.OpenForm "Form1", , , "[MyID] = " & iID, acFormEdit