H
hollyylloh
I have a form with a subform. I would like to allow the user to change the
record source of the subform by choosing a check box. I can do this with this
line of code:
Private Sub Loose_Click()
Forms!frmImportedIsLike![frmNewCompanyNameIsLike subform].Form.RecordSource
= "qryLoose"
end sub
However it only works with a simple query; one which uses only one table as
a source. As soon as i add a second table to the query the line of code above
quits working.
Is there another way to do this?
Thank you in advance.
record source of the subform by choosing a check box. I can do this with this
line of code:
Private Sub Loose_Click()
Forms!frmImportedIsLike![frmNewCompanyNameIsLike subform].Form.RecordSource
= "qryLoose"
end sub
However it only works with a simple query; one which uses only one table as
a source. As soon as i add a second table to the query the line of code above
quits working.
Is there another way to do this?
Thank you in advance.