RE: Compile Error
- From: NEC-2008 <americanviewer@xxxxxxxxx>
- Date: Mon, 20 Oct 2008 19:58:00 -0700
StartNumber_A is a field in the table tbl_FormNumber_A. It is where the
batch numbers are heald. Starting number and stop number (ie...start
500...stop 499)
"NEC-2008" wrote:
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.
- Follow-Ups:
- Re: Compile Error
- From: Mike Painter
- Re: Compile Error
- References:
- Compile Error
- From: NEC-2008
- Compile Error
- Prev by Date: Re: Compile Error
- Next by Date: Re: Compile Error
- Previous by thread: Re: Compile Error
- Next by thread: Re: Compile Error
- Index(es):
Relevant Pages
|
Loading