Hello all,
I have a subform, frmSubA, in a main form, frmMain. The subform has a "default" RecordSource set, an SQL query (SELECT * from tblFields)
I would also like to set the RecordSource of the subform from the mainform. I tried this:
Me.frmSubA (I just used the access toolbox to put subform in; so the "holder" has the same name as the subform).RecordSource = strSQL (a SQL string)
Access is complaining with the following message when I click a button to call a procedure containing the line above:
"Compile error: Method or data member not found". It also highlights the text RecordSource in the line above....
Appreciate your help.
Thanks
I have a subform, frmSubA, in a main form, frmMain. The subform has a "default" RecordSource set, an SQL query (SELECT * from tblFields)
I would also like to set the RecordSource of the subform from the mainform. I tried this:
Me.frmSubA (I just used the access toolbox to put subform in; so the "holder" has the same name as the subform).RecordSource = strSQL (a SQL string)
Access is complaining with the following message when I click a button to call a procedure containing the line above:
"Compile error: Method or data member not found". It also highlights the text RecordSource in the line above....
Appreciate your help.
Thanks