swaybright
Technical User
I was wondering if there is a good way to have a message box pop up when a search generates no hits.
I have a form with unbound controls that are used to populate the where clause of the recordsource of the data display form. a portion of that code is below. Any Ideas?
Thanks,
Shane
Dim sqlF As String
Dim sqlsel, sqlfrom, sqlwhere, sqlstate As String
If IsNull(Me!Formula) = True Then
sqlF = "((Formula) Like '*')"
Else
sqlF = StringLogic(Me!Formula, "Formula"
End If
sqlsel = "SELECT Formula"
sqlfrom = " FROM AddSearch"
sqlwhere = " WHERE (" & sqlF & ""
sqlstate = sqlsel & sqlfrom & sqlwhere
DoCmd.OpenForm "AdditiveView"
Forms!AdditiveView.RecordSource = sqlstate
I have a form with unbound controls that are used to populate the where clause of the recordsource of the data display form. a portion of that code is below. Any Ideas?
Thanks,
Shane
Dim sqlF As String
Dim sqlsel, sqlfrom, sqlwhere, sqlstate As String
If IsNull(Me!Formula) = True Then
sqlF = "((Formula) Like '*')"
Else
sqlF = StringLogic(Me!Formula, "Formula"
End If
sqlsel = "SELECT Formula"
sqlfrom = " FROM AddSearch"
sqlwhere = " WHERE (" & sqlF & ""
sqlstate = sqlsel & sqlfrom & sqlwhere
DoCmd.OpenForm "AdditiveView"
Forms!AdditiveView.RecordSource = sqlstate