I have an Access 2010 Database with 2 forms 1 of the forms is used to allow the user to select specific criteria elements for a Report. When the user clicks on the preview report or print report buttons the report opens and the SQL for the report is built in a module. The SQL uses the following sample select statement There are 3 but there all similar
Select Case Forms!frm_reporting.frame_Reporting
Case Is = 1
strWhere_rpt = ""
Case Is = 2
strWhere_rpt = "tbl_check_register.Payeeid "
& Forms!frm_reporting!cbo_Payto
Case Is = 3
strWhere_rpt = "tbl_check_register.dept_id = "
& Forms!frm_reporting!cboDept
Case Is = 4
strWhere_rpt = "tbl_check_register.locationid = "
& Forms!frm_reporting!cbo_Location
End Select
After adding the Navigation Form the Forms!frm_reporting gives an error stating that the form does not exist. The form does exist it is one of the 2 forms on the navigation page.
What am I missing when adding the navigation form does Access 2010 automatically subform the forms there? how would I refer to a subform in this case.
Select Case Forms!frm_reporting.frame_Reporting
Case Is = 1
strWhere_rpt = ""
Case Is = 2
strWhere_rpt = "tbl_check_register.Payeeid "
& Forms!frm_reporting!cbo_Payto
Case Is = 3
strWhere_rpt = "tbl_check_register.dept_id = "
& Forms!frm_reporting!cboDept
Case Is = 4
strWhere_rpt = "tbl_check_register.locationid = "
& Forms!frm_reporting!cbo_Location
End Select
After adding the Navigation Form the Forms!frm_reporting gives an error stating that the form does not exist. The form does exist it is one of the 2 forms on the navigation page.
What am I missing when adding the navigation form does Access 2010 automatically subform the forms there? how would I refer to a subform in this case.