Hi guys,
I wonder if someone can help. I am try to open a form from another and set a button's OnClick properties to a function and I keep getting an error message
Run-Time Error 2450Cannot find the referenced form .....
And this is the code I am using.
Case 113
DoCmd.OpenForm "frm_View_Defects_On_Screen", acNormal
Forms!frm_View_Defects_On_Screen.RecordSource = "qry_1st_Adv_Report_Combination_111"
Forms!frm_View_Defects_On_Screen.btn_Back_to_reports.OnClick = JumpBackToAdvancedReport()
Any idea or can't I do it. I just don't want to create another form just for one button.
Regards
Wessam
I wonder if someone can help. I am try to open a form from another and set a button's OnClick properties to a function and I keep getting an error message
Run-Time Error 2450Cannot find the referenced form .....
And this is the code I am using.
Case 113
DoCmd.OpenForm "frm_View_Defects_On_Screen", acNormal
Forms!frm_View_Defects_On_Screen.RecordSource = "qry_1st_Adv_Report_Combination_111"
Forms!frm_View_Defects_On_Screen.btn_Back_to_reports.OnClick = JumpBackToAdvancedReport()
Any idea or can't I do it. I just don't want to create another form just for one button.
Regards
Wessam