G
Guest
Hi all,
I am using docmd.openform to launch a form (passed in the where clause).
It works most of the time, EXCEPT when the search string is a number, then it
won't return anything. Here is the code:
strTemp = InputBox("Look for", "Search")
If Len(strTemp) > 0 Then DoCmd.OpenForm "FrmSearchResults", acFormDS, ,
"[Comments]like '*" & strTemp & "*'"
the strangest thing is if I look for "1" and if there's a record w/ test1
it'll return the record. But if the record is test 1, it would return
anything.
Thnaks
I am using docmd.openform to launch a form (passed in the where clause).
It works most of the time, EXCEPT when the search string is a number, then it
won't return anything. Here is the code:
strTemp = InputBox("Look for", "Search")
If Len(strTemp) > 0 Then DoCmd.OpenForm "FrmSearchResults", acFormDS, ,
"[Comments]like '*" & strTemp & "*'"
the strangest thing is if I look for "1" and if there's a record w/ test1
it'll return the record. But if the record is test 1, it would return
anything.
Thnaks