I have a fairly complex interface screen (form) that is comprised of
several subforms that perform different, but related activities. I am
designing a search/filter form that should be able to change the data
displayed in one or more of the other forms, but I cannot find the way
to change the Recordsource property of the second form from the first.
In a VBA Sub procedure triggered by the Click event of a button on the
search form, I have these bits of code.
'**************************
'MsgBoxes used purely for my information while coding...
MsgBox Parent!
RecordListings1Panel.Form.DataFieldsPanel.Form.Rec ordSource
Parent!RecordListings1Panel.Form.DataFieldsPanel.F orm.RecordSource =
"Table004_Tasks"
MsgBox Parent!
RecordListings1Panel.Form.DataFieldsPanel.Form.Rec ordSource
'**************************
The first MsgBox correctly displays the name of the current
Recordsource (a query) for the form.
The assignment doesn't seem to work, as the displayed records do not
change on the form.
The second MsgBox doesn't display.
I feel sure that I am missing something terribly obvious, but, try as
I might, I can't figure out what it might be.
Thanks for your help.