V
vb_Dumb
I am having a tough time with these dmax formulas for some reason it
keeps telling me that my it can't find my table if some one can take a
look at this code and tell me whats wrong or has a new idea i got this
code from here so if anyone can help with this that would be awesome
thanks, Dan
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.NewRecord Then
Me.DMRnumbertxt = Nz(DMax("DMR_Number", "ETP_Table"), 0) + 1
End If
End Sub
dmrnumbertxt is the name of the field on the form
dmr number is the control source
Etp table is the table dmr number is located
Error message: the Microsoft jet engine could not find the object
'forms'. Make sure the object exists and that you spell its name and
path correctly
keeps telling me that my it can't find my table if some one can take a
look at this code and tell me whats wrong or has a new idea i got this
code from here so if anyone can help with this that would be awesome
thanks, Dan
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.NewRecord Then
Me.DMRnumbertxt = Nz(DMax("DMR_Number", "ETP_Table"), 0) + 1
End If
End Sub
dmrnumbertxt is the name of the field on the form
dmr number is the control source
Etp table is the table dmr number is located
Error message: the Microsoft jet engine could not find the object
'forms'. Make sure the object exists and that you spell its name and
path correctly