N
NEC-2008
I need to know what I'm doing wrong. I'm tring to get a form number to
count..1,2,3...ect and I keep getting a "Compile Error".
Can anybody help me out?
tbl_FormNumber_A
Field Name Data Type
StartNumber_A Number
StopNUmber_A Number
frm_FormNumber_A
StartNumber_A text box (this form used to enter
the batch
StopNumber_A text box numbers of the forms)
The code that I put in the "FormNumber" text box on the form itself is at
the beforeinsert location.
The Code:
Private Sub Form_BeforeInsert (Cancel As Interger)
Me![FormNumber_A] = Next _Start_Number_A ()
If Me.FormNumber_A = DLookup ("StopNumber_A",
"tbl_FormNumber_A") - 10 Then
MsgBox "The current batch numbers are about to run out"
End If
End Sub
This gives me a Compile Error of "Sub or Function Not Defined"
at .....Next_StartNumber_A ()
Can anyone help with this? Thanks in advance.
count..1,2,3...ect and I keep getting a "Compile Error".
Can anybody help me out?
tbl_FormNumber_A
Field Name Data Type
StartNumber_A Number
StopNUmber_A Number
frm_FormNumber_A
StartNumber_A text box (this form used to enter
the batch
StopNumber_A text box numbers of the forms)
The code that I put in the "FormNumber" text box on the form itself is at
the beforeinsert location.
The Code:
Private Sub Form_BeforeInsert (Cancel As Interger)
Me![FormNumber_A] = Next _Start_Number_A ()
If Me.FormNumber_A = DLookup ("StopNumber_A",
"tbl_FormNumber_A") - 10 Then
MsgBox "The current batch numbers are about to run out"
End If
End Sub
This gives me a Compile Error of "Sub or Function Not Defined"
at .....Next_StartNumber_A ()
Can anyone help with this? Thanks in advance.