G
Guest
I have no idea why this isn't working but I have a query that runs 4
different searches (5 total) based on data inputed through a Form called
[Start Up].
Here is what I have in my query (qrySearch):
Type:
Criteria: [Forms]![Start Up]![ddlType]
Date:
Criteria: Between [Forms]![Start Up]![txtDatein] And [Forms]![Start
Up]![txtDateout]
Client:
Criteria: [Forms]![Start Up]![ddlClient]
Title
Criteria: Like "*" & [Forms]![Start Up]![txtSearch] & "*"
or
Details
Criteria: Like "*" & [Forms]![Start Up]![txtSearch] & "*"
*ddl____ means a combo box sourced to a table*
So when I run the query from a button on the Start Up form, I get either
nothing or everything.
Through trial and error I have found that if I erase the ciretia in all the
fields except Title and Details. The search works perfectly. But if I want
to refine the search and add the criteria for say, Type, the results are
usually only a few records but not necessarily ones exclusive to the Type I
selected in the form.
I don't know if this makes much sense but I am pretty sure my query is built
correctly. It is just that I get very weird results.
If you have any information, or more likely, need any information from me,
please let me know.
Thank you,
Billy
different searches (5 total) based on data inputed through a Form called
[Start Up].
Here is what I have in my query (qrySearch):
Type:
Criteria: [Forms]![Start Up]![ddlType]
Date:
Criteria: Between [Forms]![Start Up]![txtDatein] And [Forms]![Start
Up]![txtDateout]
Client:
Criteria: [Forms]![Start Up]![ddlClient]
Title
Criteria: Like "*" & [Forms]![Start Up]![txtSearch] & "*"
or
Details
Criteria: Like "*" & [Forms]![Start Up]![txtSearch] & "*"
*ddl____ means a combo box sourced to a table*
So when I run the query from a button on the Start Up form, I get either
nothing or everything.
Through trial and error I have found that if I erase the ciretia in all the
fields except Title and Details. The search works perfectly. But if I want
to refine the search and add the criteria for say, Type, the results are
usually only a few records but not necessarily ones exclusive to the Type I
selected in the form.
I don't know if this makes much sense but I am pretty sure my query is built
correctly. It is just that I get very weird results.
If you have any information, or more likely, need any information from me,
please let me know.
Thank you,
Billy