G
Guest
I have a form set up with a drop down list to select the item for a report.
The report is the only thing that opens the form. I changed the data
structure of my database, and now I get a Runtime Error 94: Invalid use of
null error. I can not figure it out. If I remove the event procedure on the
On Open property for the form, the form will open and I can select items from
the drop down list, but when I click on the preview button, the form simply
disappears. If I try to run the report, Access crashes. The On Open Event
Procedure is listed below.
Private Sub Form_Open(Cancel As Integer)
Me.Caption = Forms![Store Report].OpenArgs
End Sub
Private Sub Preview_Click()
If IsNull(Me![Store]) Then
MsgBox "You must select a store from the drop down list."
DoCmd.GoToControl "Store"
Else
Me.Visible = False
End If
End Sub
any help would be greatly appreciated.
The report is the only thing that opens the form. I changed the data
structure of my database, and now I get a Runtime Error 94: Invalid use of
null error. I can not figure it out. If I remove the event procedure on the
On Open property for the form, the form will open and I can select items from
the drop down list, but when I click on the preview button, the form simply
disappears. If I try to run the report, Access crashes. The On Open Event
Procedure is listed below.
Private Sub Form_Open(Cancel As Integer)
Me.Caption = Forms![Store Report].OpenArgs
End Sub
Private Sub Preview_Click()
If IsNull(Me![Store]) Then
MsgBox "You must select a store from the drop down list."
DoCmd.GoToControl "Store"
Else
Me.Visible = False
End If
End Sub
any help would be greatly appreciated.