M
Marnie
I have an unbound main form (frmAssignTraining) that has 4 combo boxes that I
want to be filters for the subform data (sfrmAssignTraining). The source
query for the subform references the fields on the main form as criteria
because I need to use wildcards. Example criteria: Like
[Forms]![frmAssignTraining]![cboDepartmentFilter] & "*". I don't think that
I can use the Link Master/Child fields because of the wildcards. Some of the
combo boxes may be blank and I allow users to type a partial data in the
combo box (ie. the beginning of a department name).
I have the following code in the AfterUpdate event of each combo box:
Forms!frmAssignTraining!sfrmAssignTraining.Form.Requery
The requery is not working. To test the requery I used an invalid field
name in the criteria and did not get an error. What did I do wrong and is
there a better way to handle this?
Thanks for your input!
want to be filters for the subform data (sfrmAssignTraining). The source
query for the subform references the fields on the main form as criteria
because I need to use wildcards. Example criteria: Like
[Forms]![frmAssignTraining]![cboDepartmentFilter] & "*". I don't think that
I can use the Link Master/Child fields because of the wildcards. Some of the
combo boxes may be blank and I allow users to type a partial data in the
combo box (ie. the beginning of a department name).
I have the following code in the AfterUpdate event of each combo box:
Forms!frmAssignTraining!sfrmAssignTraining.Form.Requery
The requery is not working. To test the requery I used an invalid field
name in the criteria and did not get an error. What did I do wrong and is
there a better way to handle this?
Thanks for your input!