M
m stroup
I have the following code on a cmdButton
Dim strwhere As String
strwhere = "[tbl_Reports].[FltPhase] = '" & Me![cboPhase] & "'"
DoCmd.OpenForm "frm_MainView", acNormal, , strwhere
DoCmd.Close acForm, "frm_SearchPhase"
I would like to display a message "No data qualifies" and not open the form.
Not sure what the If statement should read.
Dim strwhere As String
strwhere = "[tbl_Reports].[FltPhase] = '" & Me![cboPhase] & "'"
DoCmd.OpenForm "frm_MainView", acNormal, , strwhere
DoCmd.Close acForm, "frm_SearchPhase"
I would like to display a message "No data qualifies" and not open the form.
Not sure what the If statement should read.