G
google3luo359
This is a tough one to nail down.
I have a tab control with four pages.
Each page currently has the same subform control.
I would simply like to change the recordset of the subform when each
page is clicked at the top.
Here's the code I have now that's not working:
Forms![fmAEP]!TabAEP.Pages(0).SetFocus
Forms![fmAEP].sfmTab09.Form.RecordSource = AEP09qry
the above code results in #Name? in each of the controls on the
subform.
This code kicks in when the user logs into Page(0).
If they click on Page(1) the following code is the OnClick event :
Me.sfmTab10.Form.RecordSource = AEP10qry
This brings up the record that should be brought up for Page (0) !!!!
Similarly if Page(2) or (3) is clicked the same record is brought up!!!
Any insight into this problem would be appreciated!
TIA Ric
I have a tab control with four pages.
Each page currently has the same subform control.
I would simply like to change the recordset of the subform when each
page is clicked at the top.
Here's the code I have now that's not working:
Forms![fmAEP]!TabAEP.Pages(0).SetFocus
Forms![fmAEP].sfmTab09.Form.RecordSource = AEP09qry
the above code results in #Name? in each of the controls on the
subform.
This code kicks in when the user logs into Page(0).
If they click on Page(1) the following code is the OnClick event :
Me.sfmTab10.Form.RecordSource = AEP10qry
This brings up the record that should be brought up for Page (0) !!!!
Similarly if Page(2) or (3) is clicked the same record is brought up!!!
Any insight into this problem would be appreciated!
TIA Ric