Hey everyone!
SO I have created a query that shows a bunch of prescriptions at my pharmacy that are requiring payment still, and i have filter text boxes above the query (in parent) which filters my query results.
TABLE:
ID - cust Name - Medication - Company - Payment ID
Query:
As above but PaymentID is NULL
cust field:
criteria "Like * & parent!txtcustomer & *"
etc etc for ID, med and company (and 2 others) but you get the point
Because the company or med might be NULL on the actual field i have things like
ID: "Like * & parent!TxtID & *"
Cust (as above)
Employer is null
Medication like * parent!txtmed
Then next line is
ID: "Like * & parent!TxtID & *"
Cust (as above)
Employer like * parent!txtEmp
Medication is null
So i have 4 criteria lines with criteria for about 5 fields based on text boxes...
Ill post a photo too as i KNOW this is confusing.
Anyway, how can i simplify this beacuse I really think i'm doing this wrong!!!
What i need is to see all records if no filters are on, then see records based on whichever filters are being used, with the understand there ISNT always data in that field in every record!!!