The following code works great and is designed to tell the difference between finding a record or not :-
If Not IsNull(DLookup("[Title]", "tblDataMIC", "[Title] = '" & (Me.ComboTitle) & "'")) Then
DoCmd.FindRecord RequestedRecord
Else
Me.Title = RequestedRecord
End If
Where (me.ComboTitle) is a combobox on a form that users can use for searches or for inputting a text value.
If the text value is something like ( MST21 ) it works fine.
It doesn't work if the text is ( MST21 1/2" and 2" ) i.e. when " means inches.
Any suggestions for a workaround ?
If Not IsNull(DLookup("[Title]", "tblDataMIC", "[Title] = '" & (Me.ComboTitle) & "'")) Then
DoCmd.FindRecord RequestedRecord
Else
Me.Title = RequestedRecord
End If
Where (me.ComboTitle) is a combobox on a form that users can use for searches or for inputting a text value.
If the text value is something like ( MST21 ) it works fine.
It doesn't work if the text is ( MST21 1/2" and 2" ) i.e. when " means inches.
Any suggestions for a workaround ?