G
Golfinray
This code does not pause and allow the user to pick a sort method on form
"area form." I brings it up for a second and goes right on to the report.
What do I need to do? Even if I pick "no" it briefly shows the area form and
then goes right on to the report. Thanks!!!
Private Sub Command25_Click()
On Error GoTo Err_Command25_Click
Dim stDocName As String
stDocName = "06-07 Active Projects"
MsgBox "would you like to sort by area?", vbYesNo, continue
If vbYes Then DoCmd.OpenForm "area form", acNormal
If vbNo Then DoCmd.OpenReport "06-07 active projects", acViewPreview
Exit_Command25_Click:
Exit Sub
Err_Command25_Click:
MsgBox Err.Description
Resume Exit_Command25_Click
End Sub
"area form." I brings it up for a second and goes right on to the report.
What do I need to do? Even if I pick "no" it briefly shows the area form and
then goes right on to the report. Thanks!!!
Private Sub Command25_Click()
On Error GoTo Err_Command25_Click
Dim stDocName As String
stDocName = "06-07 Active Projects"
MsgBox "would you like to sort by area?", vbYesNo, continue
If vbYes Then DoCmd.OpenForm "area form", acNormal
If vbNo Then DoCmd.OpenReport "06-07 active projects", acViewPreview
Exit_Command25_Click:
Exit Sub
Err_Command25_Click:
MsgBox Err.Description
Resume Exit_Command25_Click
End Sub