What is the most straightforward method to dynamically filter a subform based on data entry in the main form? I am not a VBA expert, and EVERY note I've read (extensively) on the subject has not yet cleared it up for me.<br>
<br>
Example: I have main form SearchClients, with subform ClientList displaying in datasheet mode. Clientlist queries SELECT * FROM Clients upon loading of form & subform. I have unbound fields in SearchClients from which I wish to read values and redefine the subform query UPON entry in each field, so as the user enters values, the data displayed in ClientList narrows to only those records that match.<br>
<br>
It seems that there is more than one way to do this, and I read tips about redefining the Recordset object, or using QBF, or creating a Recordset clone but I must be missing something in the syntax, because the best I can get is a form that needs to be requeried with some sort of command button, or that brings up parameter definition dialogs.<br>
<br>
Can someone give me a SIMPLE example, from start to finish? You'll be my friend for life.<br>
<br>
Thanx
<br>
Example: I have main form SearchClients, with subform ClientList displaying in datasheet mode. Clientlist queries SELECT * FROM Clients upon loading of form & subform. I have unbound fields in SearchClients from which I wish to read values and redefine the subform query UPON entry in each field, so as the user enters values, the data displayed in ClientList narrows to only those records that match.<br>
<br>
It seems that there is more than one way to do this, and I read tips about redefining the Recordset object, or using QBF, or creating a Recordset clone but I must be missing something in the syntax, because the best I can get is a form that needs to be requeried with some sort of command button, or that brings up parameter definition dialogs.<br>
<br>
Can someone give me a SIMPLE example, from start to finish? You'll be my friend for life.<br>
<br>
Thanx