Hi,
I have a form with a cbx (Reportcbx) that list a series of forms, then i have a subform "Reportctrl" that loads the form from the Reportcbx. How do you prompt a msgbox of the user clicks run button before selecting a report from the Reportcbx, aka Reportcbx is null? I have currently:
If Reportcbx = Null Then
DoCmd.OpenForm ("Please select a report")
Else
Me.ReportCtrl.SourceObject = Me.Reportcbx
End If
I am getting a run time error 94 Invalid use of null
Any help is appreciated.
I have a form with a cbx (Reportcbx) that list a series of forms, then i have a subform "Reportctrl" that loads the form from the Reportcbx. How do you prompt a msgbox of the user clicks run button before selecting a report from the Reportcbx, aka Reportcbx is null? I have currently:
If Reportcbx = Null Then
DoCmd.OpenForm ("Please select a report")
Else
Me.ReportCtrl.SourceObject = Me.Reportcbx
End If
I am getting a run time error 94 Invalid use of null
Any help is appreciated.