Hi guys
I am designing a search from to search for a customer. based upon following input:
I have in total 5 textboxes.
1. Textbox for "Polno".
2. Textbox for "Firstname"
3. Textbox for "Surname".
4. Textbox for "All or part of Address/City"
5. Textbox for "Postcode"
Now, when the user just enter Polno and press Enter then it displays a report as follows:
But now when somebody input data in rest of the four textboxes then I have to join the conditions.e.g if a user enters Firstname and some part of Address then to run a report condition will be different.
How to do that part?
Any help would be much appreciated.
Thanks
I am designing a search from to search for a customer. based upon following input:
I have in total 5 textboxes.
1. Textbox for "Polno".
2. Textbox for "Firstname"
3. Textbox for "Surname".
4. Textbox for "All or part of Address/City"
5. Textbox for "Postcode"
Now, when the user just enter Polno and press Enter then it displays a report as follows:
Code:
If txtPolno <> Null Or txtPolno <> "" Then
mysCriteria = "Polno=" & txtPolno & ""
doCmd.OpenReport stDocName1, acPreview, , mysCriteria, acDialog End If
But now when somebody input data in rest of the four textboxes then I have to join the conditions.e.g if a user enters Firstname and some part of Address then to run a report condition will be different.
How to do that part?
Any help would be much appreciated.
Thanks