V
venus as a boy
Private Sub Form_BeforeInsert(Cancel As Integer)
myNextRecordNo = Nz(DMax("[myRecordNo]", "Employee Main"), 0) + 1
End Sub
I forgot to mention I am new.
This advice doesn't help, how do I 'wrap the dmax function in an if-then-else block'?
I need sequentially ordered records. And please remember I'm new. I played with QBasic in middle school, which is allowing me to hang in there.
myNextRecordNo = Nz(DMax("[myRecordNo]", "Employee Main"), 0) + 1
End Sub
I forgot to mention I am new.
the value if it returns one and give an error message and stop if it fails.You need to wrap the DMax function in an If-Then-Else block so you can use
This advice doesn't help, how do I 'wrap the dmax function in an if-then-else block'?
I need sequentially ordered records. And please remember I'm new. I played with QBasic in middle school, which is allowing me to hang in there.