G
Guest
I have a form where the user can enter from 1 to 4 different criteria in text
boxes. The text boxes are: ReceiptNum, Date, BuyerName, Staff. What I'm
trying to accopmplish is to run a query based on that criteria. What I want,
for example, is if I'm looking for a record of all sales on 11/30/2006, then
I enter this in the Date field and leave the other fields empty. All sales
on that date appear, regardless of Staff. If I'm looking for all sales on
11/30/2006 by Staff John Doe, then I enter 11/30/2006 in the Date field and
John Doe in the Staff field and leave the other 2 fields empty, and it should
pull only those records for that date where John Doe was the staff. I have
the query set up so that it references the form fields for it's criteria, but
it's not working. For example, if I enter criteria for sales on 11/30/2006
by Staff John Doe, I end up with all records on 11/30/2006, not just John
Doe's.
Any help is appreciated!
boxes. The text boxes are: ReceiptNum, Date, BuyerName, Staff. What I'm
trying to accopmplish is to run a query based on that criteria. What I want,
for example, is if I'm looking for a record of all sales on 11/30/2006, then
I enter this in the Date field and leave the other fields empty. All sales
on that date appear, regardless of Staff. If I'm looking for all sales on
11/30/2006 by Staff John Doe, then I enter 11/30/2006 in the Date field and
John Doe in the Staff field and leave the other 2 fields empty, and it should
pull only those records for that date where John Doe was the staff. I have
the query set up so that it references the form fields for it's criteria, but
it's not working. For example, if I enter criteria for sales on 11/30/2006
by Staff John Doe, I end up with all records on 11/30/2006, not just John
Doe's.
Any help is appreciated!