rpeare suggested
Originally Posted by
rpeare
...<snip> you just need to change your txtunitid field to a bound field on your table. </snip>.....
Open your form, set the control source for the control "txtunitid" to the field that holds the ID# for each record. (this makes the control "Bound")
But I would use the "Form_BeforeUpdate" event, instead of the "Form_Current" event.
Code:
Private Form_BeforeUpdate(Cancel As Integer)
If Me.NewRecord Then
Me.txtUnitID = 1 + DMax("Unit", "tblUnits")
End If
End Sub