philbullock1223
Registered User.
- Local time
- Today, 16:44
- Joined
- Dec 31, 2011
- Messages
- 55
I am trying to change a nested subforms recordsource in vba from the main form. Many online sources give me this solution, but when I run this I get an error:
I get the error: You entered an expression that has an invalid reference to the property Form/Report"
My Subform1 Source Object and Name are both Subform1
My Subform2 Source Object and Name are both Subform2
Any help on this would be greatly appreciated!
Code:
Me.Subform1.Form.Subform2.Form.RecordSource = "SourceTable"
I get the error: You entered an expression that has an invalid reference to the property Form/Report"
My Subform1 Source Object and Name are both Subform1
My Subform2 Source Object and Name are both Subform2
Any help on this would be greatly appreciated!