Skip Bisconer
Who Me?
- Local time
- Today, 13:40
- Joined
- Jan 22, 2008
- Messages
- 285
I am using this code on a form command button click event trying to make the form disappear while I open another form based on a query. I thought the acDialog was supposed to suspend the code until the new form closes. Maybe I just have it incorrectly placed. Please take a look and advise me.
Private Sub Command23_Click()
On Error GoTo Err_Command23_Click
Me.Visible = False
DoCmd.OpenForm "frmViewAssignedOrdersProgress", acFormDS, , , acNormal, acDialog
DoCmd.Maximize
Me.Visible = True
Exit_Command23_Click:
Exit Sub
Err_Command23_Click:
MsgBox Err.Description
Resume Exit_Command23_Click
End Sub
Private Sub Command23_Click()
On Error GoTo Err_Command23_Click
Me.Visible = False
DoCmd.OpenForm "frmViewAssignedOrdersProgress", acFormDS, , , acNormal, acDialog
DoCmd.Maximize
Me.Visible = True
Exit_Command23_Click:
Exit Sub
Err_Command23_Click:
MsgBox Err.Description
Resume Exit_Command23_Click
End Sub