I know I probably have my syntax messed up here so I figured I'd post it.
I have a "Reports" form with a tab control. I have a "Main" form with various command buttons.
Based on the command button used, I'm trying to open the reports form to a specific tab page in this manner:
Anyone have any ideas about my syntax? I've tried many variations including " stLinkCriteria = "Forms!frm_Reports.TabCtl0.Value = 1"" to no avail.
I'd like to know if I can do it this way because eventually, I'll end up opening the "frm_reports" form from various data entry forms.
I know I can specify which tab page is active in the Form_Open event of the "frm_Reports" form, so I may end up going that route.
Thanks,
Craig
I have a "Reports" form with a tab control. I have a "Main" form with various command buttons.
Based on the command button used, I'm trying to open the reports form to a specific tab page in this manner:
Code:
stDocName = "frm_Reports"
stLinkCriteria = "Forms!frm_Reports.TabCtl0 = 1"
DoCmd.OpenForm stDocName, , , stLinkCriteria
I'd like to know if I can do it this way because eventually, I'll end up opening the "frm_reports" form from various data entry forms.
I know I can specify which tab page is active in the Form_Open event of the "frm_Reports" form, so I may end up going that route.
Thanks,
Craig
Last edited: