I have a form, which contains 5 subforms.
The Parent-Child is based on a product code.
Each subform also has a date criteria.
The volumes of data can get pretty large so, to speed the querying up, I decided to split this into a current data (1 weeks worth of data) and an Archive (everything prior to last week).
I was able to switch the Recordsources for each subform depending on a date selected.
I've since altered the main Forms recordsource (to include the previous data as the 5th subform), and the code no longer works.
This is what I was using:
Me.UNPAID_subform.Form.RecordSource = mySQL
but it now returns an error stating I have an expression that has an invalid reference to the property Form/Report?
Could anyone suggest why this is now happening, and what I should do to correct it.
Thanks in advance.
Remy Still new to DB's and enjoying learning day by day
The Parent-Child is based on a product code.
Each subform also has a date criteria.
The volumes of data can get pretty large so, to speed the querying up, I decided to split this into a current data (1 weeks worth of data) and an Archive (everything prior to last week).
I was able to switch the Recordsources for each subform depending on a date selected.
I've since altered the main Forms recordsource (to include the previous data as the 5th subform), and the code no longer works.
This is what I was using:
Me.UNPAID_subform.Form.RecordSource = mySQL
but it now returns an error stating I have an expression that has an invalid reference to the property Form/Report?
Could anyone suggest why this is now happening, and what I should do to correct it.
Thanks in advance.
Remy Still new to DB's and enjoying learning day by day