A
AndreasO
Please, not again, you might think...!!!
It works perfectly assigning a new Task# to a new record in a subform in
single mode view, but not in continuous mode view, since a new record is
created before the current one is fininshed.
The numbers dbl up.
As soon as I run out of space in the subform and need to use the add rec
button, it works.
Is there a way not having to write the code (sample):
Private Sub Form_BeforeInsert(Cancel As Integer)
If Me!PartID = 0 Then
Me!PartID = Nz(DMax("PartID", "qryPartNo")) + 1
End If
End Sub
I would lke to keep it simple and could get away by just adding the addrec
control to insert a new sub rec, instead of having access do that and mess up
my numbering..
Thanks for your help
It works perfectly assigning a new Task# to a new record in a subform in
single mode view, but not in continuous mode view, since a new record is
created before the current one is fininshed.
The numbers dbl up.
As soon as I run out of space in the subform and need to use the add rec
button, it works.
Is there a way not having to write the code (sample):
Private Sub Form_BeforeInsert(Cancel As Integer)
If Me!PartID = 0 Then
Me!PartID = Nz(DMax("PartID", "qryPartNo")) + 1
End If
End Sub
I would lke to keep it simple and could get away by just adding the addrec
control to insert a new sub rec, instead of having access do that and mess up
my numbering..
Thanks for your help