I have searched the posts on this site and cannot find anything that fully answers my quesiton/solves my problem.
I have a form that has all unbound text boxes on it. It has 12 different boxes. I then have a report that is based on a query. The query filters the data based on the info that is entered on the form with the unbound text boxes. The user may enter any combo of info in the boxes. For example - they can enter name, dob and country OR they could just enter Name.
All of that works fine. I have a button on my form to pull up the report and it filters the data correctly. My problem is that I want to be able to show the criteria that the user enterd on the report. I've seen lots about showing date ranges but this is a little different since the user may or may not enter data in all fields. If the user enters name and dob in the form - I would like the report header to show something like "where name = 'XXX' and DOB = mm/dd/yy" I'm just not sure how to tell it to show ONLY the info that the user filled in on the form. Any ideas???
Thanks in advance!
Caitlin
I have a form that has all unbound text boxes on it. It has 12 different boxes. I then have a report that is based on a query. The query filters the data based on the info that is entered on the form with the unbound text boxes. The user may enter any combo of info in the boxes. For example - they can enter name, dob and country OR they could just enter Name.
All of that works fine. I have a button on my form to pull up the report and it filters the data correctly. My problem is that I want to be able to show the criteria that the user enterd on the report. I've seen lots about showing date ranges but this is a little different since the user may or may not enter data in all fields. If the user enters name and dob in the form - I would like the report header to show something like "where name = 'XXX' and DOB = mm/dd/yy" I'm just not sure how to tell it to show ONLY the info that the user filled in on the form. Any ideas???
Thanks in advance!
Caitlin