strawberry
Registered User.
- Local time
- Today, 14:02
- Joined
- Apr 1, 2008
- Messages
- 43
Hi there, i have created a report linked to a query. one of the query fields refers to a 'dialogbox' for its choices
I have added the following code in the properties of the report in the 'on open'
' Report_Open
'
'------------------------------------------------------------
Private Sub Report_Open(Cancel As Integer)
On Error GoTo Report_Open_Err
' open form
DoCmd.OpenForm "dialogbox", acNormal, "", "", acEdit, acDialog
If (Not IsLoaded("dialogbox")) Then
DoCmd.CancelEvent
End If
Report_Open_Exit:
Exit Sub
Report_Open_Err:
MsgBox Error$
Resume Report_Open_Exit
End Sub
but when i run the report, i get the following error
compile error 'sub or function not defined' and in the coding for 'on open' it highlights 'isloaded'
Hope someone can help
Many thanks
Jane
I have added the following code in the properties of the report in the 'on open'
' Report_Open
'
'------------------------------------------------------------
Private Sub Report_Open(Cancel As Integer)
On Error GoTo Report_Open_Err
' open form
DoCmd.OpenForm "dialogbox", acNormal, "", "", acEdit, acDialog
If (Not IsLoaded("dialogbox")) Then
DoCmd.CancelEvent
End If
Report_Open_Exit:
Exit Sub
Report_Open_Err:
MsgBox Error$
Resume Report_Open_Exit
End Sub
but when i run the report, i get the following error
compile error 'sub or function not defined' and in the coding for 'on open' it highlights 'isloaded'
Hope someone can help
Many thanks
Jane