P
ProjectUser
Here’s my dilemma:
I’ve created a form as my switchboard, which isn’t loading properly.
Instead of seeing the switchboard form when you open the database, I’m seeing
my report criteria dialog form associated. When I close this criteria dialog
form, then the switchboard form appears. The same results occur when you
also select the switchboard form – the criteria report dialog form appears
first, then the switchboard form once the report criteria dialog form is
closed.
For background purposes/details:
There are no event procedures written for this switchboard form. So, it’s
baffling to me that that when you select the switchboard form, another form
opens (report criteria form). On the switchboard form are three toggle
buttons within an option frame. Two buttons are coded to open forms, the
third button is coded to open the report criteria dialog form which has a run
report command button on it.
Here’s the code I’m using for the three toggle buttons:
Private Sub Toggle3_GotFocus() ‘this is the button that seems to be creating
issue
DoCmd.OpenForm "FORM_RPTcriteria", acNormal, , , , acDialog
End Sub
Private Sub Toggle4_GotFocus()
DoCmd.OpenForm "FORM_A", acNormal, , , , acDialog
End Sub
Private Sub Toggle5_GotFocus()
DoCmd.OpenForm "FORM_B", acNormal, , , , acDialog
End Sub
I’ve also tried coding with a OpenReport method, resulting in an error.
Here’s what the code looks like:
DoCmd.OpenReport "RPT_WklyStatus", acViewReport, , , acWindowNormal
The report is coded to open this criteria dialog form before running the
report. So what should happen is that when you open the report, the dialog
form opens first.
I hope this wasn’t too confusing to understand. Can anyone please help?
Thanks,
I’ve created a form as my switchboard, which isn’t loading properly.
Instead of seeing the switchboard form when you open the database, I’m seeing
my report criteria dialog form associated. When I close this criteria dialog
form, then the switchboard form appears. The same results occur when you
also select the switchboard form – the criteria report dialog form appears
first, then the switchboard form once the report criteria dialog form is
closed.
For background purposes/details:
There are no event procedures written for this switchboard form. So, it’s
baffling to me that that when you select the switchboard form, another form
opens (report criteria form). On the switchboard form are three toggle
buttons within an option frame. Two buttons are coded to open forms, the
third button is coded to open the report criteria dialog form which has a run
report command button on it.
Here’s the code I’m using for the three toggle buttons:
Private Sub Toggle3_GotFocus() ‘this is the button that seems to be creating
issue
DoCmd.OpenForm "FORM_RPTcriteria", acNormal, , , , acDialog
End Sub
Private Sub Toggle4_GotFocus()
DoCmd.OpenForm "FORM_A", acNormal, , , , acDialog
End Sub
Private Sub Toggle5_GotFocus()
DoCmd.OpenForm "FORM_B", acNormal, , , , acDialog
End Sub
I’ve also tried coding with a OpenReport method, resulting in an error.
Here’s what the code looks like:
DoCmd.OpenReport "RPT_WklyStatus", acViewReport, , , acWindowNormal
The report is coded to open this criteria dialog form before running the
report. So what should happen is that when you open the report, the dialog
form opens first.
I hope this wasn’t too confusing to understand. Can anyone please help?
Thanks,