I have a main table with several fields in it and then I have a form to peform 11 different ways to search the data in the table. Some of them are drop downs and some are fields you type what you need too. Below are the fields I have a query built for and the meathod I used:
-------------------------------------------
Like "*" & [Forms]![csearch]![Manufacturer] & "*"
Like "*" & [Forms]![csearch]![Model#] & "*"
Like "*" & [Forms]![csearch]![Serial#] & "*"
Like "*" & [Forms]![csearch]![Condition] & "*"
Like "*" & [Forms]![csearch]![Description] & "*"
Like "*" & [Forms]![csearch]![Ram] & "*"
Between nz([Forms]![CSearch]![DATEMIN],#1/1/2004#) And nz([Forms]![CSearch]![DATEMAX],#1/1/2129#)
Like "*" & [Forms]![csearch]![Jack#] & "*"
Like "*" & [Forms]![csearch]![Location] & "*"
Like "*" & [Forms]![csearch]![Processor] & "*"
Like "*" & [Forms]![csearch]![Status] & "*"
-------------------------------------------------
If I run the search it gives me the return like there aren't any records found which isn't the case I have 810 records. The other fields that are in the table which aren't searchable are also in the query as just SHOW.
Also, if I take outall but 1 search field with formula above it works; other than that it doesn't.
Please help with the correct way for a search string.
Thank you
-------------------------------------------
Like "*" & [Forms]![csearch]![Manufacturer] & "*"
Like "*" & [Forms]![csearch]![Model#] & "*"
Like "*" & [Forms]![csearch]![Serial#] & "*"
Like "*" & [Forms]![csearch]![Condition] & "*"
Like "*" & [Forms]![csearch]![Description] & "*"
Like "*" & [Forms]![csearch]![Ram] & "*"
Between nz([Forms]![CSearch]![DATEMIN],#1/1/2004#) And nz([Forms]![CSearch]![DATEMAX],#1/1/2129#)
Like "*" & [Forms]![csearch]![Jack#] & "*"
Like "*" & [Forms]![csearch]![Location] & "*"
Like "*" & [Forms]![csearch]![Processor] & "*"
Like "*" & [Forms]![csearch]![Status] & "*"
-------------------------------------------------
If I run the search it gives me the return like there aren't any records found which isn't the case I have 810 records. The other fields that are in the table which aren't searchable are also in the query as just SHOW.
Also, if I take outall but 1 search field with formula above it works; other than that it doesn't.
Please help with the correct way for a search string.
Thank you