I created an event on the Main form's property 'On Load' as below, but on opening the form I got error msg "The expression On Load you entered as the event property setting produced the following error: Invalid outside procedure.
Can you tell me is the problem. I'm using Access 2002.
If IsNull(Me.Invoi ceNo) Then
Me.InvoiceNo = Forms![frmInvoice]![frmIncrement].Form![Increment]
Forms![frmInvoice]![frmIncrement].Form![Increment] = Forms![frmInvoice]![frmIncrement].Form![Increment] + 1
End If
Private Sub Form_Load()
End Sub
Can you tell me is the problem. I'm using Access 2002.
If IsNull(Me.Invoi ceNo) Then
Me.InvoiceNo = Forms![frmInvoice]![frmIncrement].Form![Increment]
Forms![frmInvoice]![frmIncrement].Form![Increment] = Forms![frmInvoice]![frmIncrement].Form![Increment] + 1
End If
Private Sub Form_Load()
End Sub
Comment