J
Jacco
This subject is abundant if typed in Google, but I keep getting a mistake,
I have created a Form Called "Edit Aircraft". I want this form to be opened
by another form. I inserted the Sample code found in the help-file:
Private Sub Form_Open(Cancel As Integer)
Dim intReturn As Integer
intReturn = MsgBox("Do you want to configure your aircraft now?",
vbYesNo)
Select Case intReturn
Case vbYes
' Open Order Details form.
DoCmd.OpenForm "Edit Aircraft"
Case vbNo
MsgBox "Remember to configure this aircraft at a later time"
Cancel = True ' Cancel Open event.
End Select
End Sub
This triggers a error when the form is being opened saying:
Procedure declaration does not match description event or procedure having
the same name.
I set the property for Form On Open [event procedure]
I don't understand what the problem is. I created a new Form "Form1" and
inserted just the OnOpen event, and it works as advertised.
Anyone knows where the problem is?
Jacco
I have created a Form Called "Edit Aircraft". I want this form to be opened
by another form. I inserted the Sample code found in the help-file:
Private Sub Form_Open(Cancel As Integer)
Dim intReturn As Integer
intReturn = MsgBox("Do you want to configure your aircraft now?",
vbYesNo)
Select Case intReturn
Case vbYes
' Open Order Details form.
DoCmd.OpenForm "Edit Aircraft"
Case vbNo
MsgBox "Remember to configure this aircraft at a later time"
Cancel = True ' Cancel Open event.
End Select
End Sub
This triggers a error when the form is being opened saying:
Procedure declaration does not match description event or procedure having
the same name.
I set the property for Form On Open [event procedure]
I don't understand what the problem is. I created a new Form "Form1" and
inserted just the OnOpen event, and it works as advertised.
Anyone knows where the problem is?
Jacco