M
mwest
I have a query called retreived selected contaminant,department,date and the
code below however when I enter the information below it gives me a blank
form instead of the information I requested.
Private Sub MultiOK_Click()
On Error GoTo b
If IsNull(Me.Combo0) Or IsNull(Me.Combo2) Then
MsgBox "Please include all criteria for the report.", vbInformation, "Some
nifty title here."
Me.Combo0.SetFocus
GoTo a
End If
Me.Visible = False
DoCmd.OpenForm "contaminant,department,date Display"
DoCmd.Close acForm, Me.Name
DoCmd.SelectObject acForm, "contaminant,department,date Display"
a: Exit Sub
b: MsgBox Err.Number & " " & Err.Description
Resume a
End Sub
code below however when I enter the information below it gives me a blank
form instead of the information I requested.
Private Sub MultiOK_Click()
On Error GoTo b
If IsNull(Me.Combo0) Or IsNull(Me.Combo2) Then
MsgBox "Please include all criteria for the report.", vbInformation, "Some
nifty title here."
Me.Combo0.SetFocus
GoTo a
End If
Me.Visible = False
DoCmd.OpenForm "contaminant,department,date Display"
DoCmd.Close acForm, Me.Name
DoCmd.SelectObject acForm, "contaminant,department,date Display"
a: Exit Sub
b: MsgBox Err.Number & " " & Err.Description
Resume a
End Sub