Hey all. I'm getting a bit frustrated here. Every time I think I've solved the problem, another pops up. I'm trying to run a Query that will look for a string (In a selected field) which it gets from a text box (Called Title) in a form (called 'FindIt Form'). At first I tried this in the Criteria box of the field in the query:
--[Forms]![FindIt Form]![Title]--
This would only find records that matched the data in the text box exactly. e.g. if you type in "Box" it wouldn't find "Box 1." No Next I tried this:
--Like[Forms]![FindIt Form]![Title] & "*"--
This seemed to work but it wouldn't return Null values if the text box was left empty. This is important as there are more than one text boxes it will search from at once. So now I'm trying this:
--IIf([Forms]![FindIt Form]![Title] Is Null,"","Like [Forms]![FindIt Form]![Title]& "*" "
BUT IT WON'T WORK!!!! Hmph. If anyone can help, you'll make me a happy man... or just less annoyed. Thanks.
--[Forms]![FindIt Form]![Title]--
This would only find records that matched the data in the text box exactly. e.g. if you type in "Box" it wouldn't find "Box 1." No Next I tried this:
--Like[Forms]![FindIt Form]![Title] & "*"--
This seemed to work but it wouldn't return Null values if the text box was left empty. This is important as there are more than one text boxes it will search from at once. So now I'm trying this:
--IIf([Forms]![FindIt Form]![Title] Is Null,"","Like [Forms]![FindIt Form]![Title]& "*" "
BUT IT WON'T WORK!!!! Hmph. If anyone can help, you'll make me a happy man... or just less annoyed. Thanks.