T
Timothy
Does anyone have a code sample or example database that
uses a QBF. The form has 2 or 3 search boxes that narrow
the search. if one or two of the criteria is left blank
then no results are returned. ?????
Ive gotten loads of help so far and ive come to this point:
I have 3 tables (joined by a one to one) that Im running
this query using is not null and Like "*" & ...& "*","XXX"
on every field of the tables. I have two criteria boxes,
but it only gives the results from each box, as if its
seperate. (searching for Bob and Smith. I would get all
the records with bob and all the records with smith,
instead of the records only with bob smith.) I was told it
was too dificult to do in the query and needed a SQL
code. But,
Is there a statement, conditional, that says Compare the
results and only display the ones whose records are
Identical? maybe their primary key (record number)???
what would the statement look like?
Or will... run the 3 querys (one for each table..maybe I
can combine them into one query since they have a one to
one.) off the first entry box, make 3 more identical
queries and connect them to the second criteria box, and
the same for the 3rd. Then write a query that compares
the results of the queries and only displays the identical
records. Even if box 2 or 3 are left blank (null) then
it would just do it for the info it has.
Is this even possible. No one has given me anything close
that will narrow a search.
any other ideas would be greatly appreciated.
Timothy
uses a QBF. The form has 2 or 3 search boxes that narrow
the search. if one or two of the criteria is left blank
then no results are returned. ?????
Ive gotten loads of help so far and ive come to this point:
I have 3 tables (joined by a one to one) that Im running
this query using is not null and Like "*" & ...& "*","XXX"
on every field of the tables. I have two criteria boxes,
but it only gives the results from each box, as if its
seperate. (searching for Bob and Smith. I would get all
the records with bob and all the records with smith,
instead of the records only with bob smith.) I was told it
was too dificult to do in the query and needed a SQL
code. But,
Is there a statement, conditional, that says Compare the
results and only display the ones whose records are
Identical? maybe their primary key (record number)???
what would the statement look like?
Or will... run the 3 querys (one for each table..maybe I
can combine them into one query since they have a one to
one.) off the first entry box, make 3 more identical
queries and connect them to the second criteria box, and
the same for the 3rd. Then write a query that compares
the results of the queries and only displays the identical
records. Even if box 2 or 3 are left blank (null) then
it would just do it for the info it has.
Is this even possible. No one has given me anything close
that will narrow a search.
any other ideas would be greatly appreciated.
Timothy