ProgramError
Programmer
Hi All
Anyone know how to change this to look for the input if it is only part of the data enter in the field
eg if hello is entered then it should return billyhellothere
aswell as just hello
i tried
but got a
syntax error in query expression 'model = *'hello'*'
any ideas?
Thanks
Ian Mayor (UK)
Program Error
Always make your words sweet and nice. Because you never know when you may have to eat them.
Anyone know how to change this to look for the input if it is only part of the data enter in the field
eg if hello is entered then it should return billyhellothere
aswell as just hello
Code:
strSearchCriteria = Nz(DLookup("modelID", "tblmodel", "model = '" & Me.txtSearchDetails & "'"))
i tried
Code:
strSearchCriteria = Nz(DLookup("modelID", "tblmodel", "model = *'" & Me.txtSearchDetails & "'*"))
syntax error in query expression 'model = *'hello'*'
any ideas?
Thanks
Ian Mayor (UK)
Program Error
Always make your words sweet and nice. Because you never know when you may have to eat them.