I want to be able to execute specific queries based upon which fields in the form have data in them. Assume I have 3 fields - WR nbr, Topic, & date.
If I fill in a WR nbr & date I want to look up that WR for that date.
If I fill in a Topic & date, I want to look up that topic for that date.
If I fill in only a WR nbr, then I want to look up that WR nbr for all dates.
If I fill in only a date, I want to list all WR nbrs & topics for that date.
So, depending on the combination of data entered on the fom determines the query to be performed. How do I direct the proper query to be executed?
If I fill in a WR nbr & date I want to look up that WR for that date.
If I fill in a Topic & date, I want to look up that topic for that date.
If I fill in only a WR nbr, then I want to look up that WR nbr for all dates.
If I fill in only a date, I want to list all WR nbrs & topics for that date.
So, depending on the combination of data entered on the fom determines the query to be performed. How do I direct the proper query to be executed?