F
Francisco
How can I do this?
I have a field in an form that is number, and I want it to
increment for every new page
Ex. page 1 10980
page 2 10981
How can I do this without autonumber?
I tried this but I have a problem with the null, is this
ok?
Private Sub Form_Current()
If Me.NewRecord Then
' we do not want modify EXISTING record, isn't it
Me.PO_Number = Nz((DMax(PO_Number, "PO Log Table",
[PO Number])), "0") + 1
End If
End Sub
I'm an Access 2000 user with little or no knowledge of
Vbasic.
I have a field in an form that is number, and I want it to
increment for every new page
Ex. page 1 10980
page 2 10981
How can I do this without autonumber?
I tried this but I have a problem with the null, is this
ok?
Private Sub Form_Current()
If Me.NewRecord Then
' we do not want modify EXISTING record, isn't it
Me.PO_Number = Nz((DMax(PO_Number, "PO Log Table",
[PO Number])), "0") + 1
End If
End Sub
I'm an Access 2000 user with little or no knowledge of
Vbasic.