Hi there
I have the following code on command button on the main form that displays customers names on the subform on finding a match from the text box.
txtCustname.SetFocus
strCustName = txtCustname.Text
If strCustName <> ""
Me.Subform.Visible = True
Me.Subform.Form.Filter = "CustName like '*" & strCustName & "*'"
Me.Form.FilterOn = True
txtCustname = ""
End If
All i wana do is to display a message saying "not found' when the entry from textbox doesnt match with any customer names in the view. Right now it just doens't display any records yet no message..just want to make it a little more user friendly...or unless i should do this searching some other way...thanks
I have the following code on command button on the main form that displays customers names on the subform on finding a match from the text box.
txtCustname.SetFocus
strCustName = txtCustname.Text
If strCustName <> ""
Me.Subform.Visible = True
Me.Subform.Form.Filter = "CustName like '*" & strCustName & "*'"
Me.Form.FilterOn = True
txtCustname = ""
End If
All i wana do is to display a message saying "not found' when the entry from textbox doesnt match with any customer names in the view. Right now it just doens't display any records yet no message..just want to make it a little more user friendly...or unless i should do this searching some other way...thanks