Hi All
I'm having trouble creating a suitable form to search the data in a query.
I have created a form with a subform within it and have created controls in the main form, mainly combo boxes, for all the fields in the sub form and attached a macro to requery when a control in the main form is updated. This works ok except I wanted the query to ignore null values in any of the controls in the main form so all records are displayed before any updates and so I can search by one field alone.
I have used:
[control1] Or Like [control1] Is Null
in the criteria of the fields and this works except there are at least 20 fields in the query and when this rule is applied to all it fills lines and lines of criteria and the query slows to a halt.
If anyone knows a way around this or a better method of doing this then I be very grateful if you could help.
Matt
I'm having trouble creating a suitable form to search the data in a query.
I have created a form with a subform within it and have created controls in the main form, mainly combo boxes, for all the fields in the sub form and attached a macro to requery when a control in the main form is updated. This works ok except I wanted the query to ignore null values in any of the controls in the main form so all records are displayed before any updates and so I can search by one field alone.
I have used:
[control1] Or Like [control1] Is Null
in the criteria of the fields and this works except there are at least 20 fields in the query and when this rule is applied to all it fills lines and lines of criteria and the query slows to a halt.
If anyone knows a way around this or a better method of doing this then I be very grateful if you could help.
Matt