A
Alex
Hi guys,
I have VBA code with AddNew line that puts a new record
into the table that has autonumber field - OrderID-key
field.
I fill out the fields for new record like this:
!OrderDate = Date
!ServicePlaceID = rs_frmRepetitive!ServicePlaceID
!OrderDescription = rs_frmRepetitive!OrderDescription
(Where rs_frmRepetitive is a recordset clone of some form)
and assume that Access will fill out the autonumber field
itself. And it does but with the number that already
exists in the table! It does not see the whole scope or
something?!?
Question is: How to make sure that the OrderID field
(autonumber format) gets the unique number as it should?
thanks in advance.
I have VBA code with AddNew line that puts a new record
into the table that has autonumber field - OrderID-key
field.
I fill out the fields for new record like this:
!OrderDate = Date
!ServicePlaceID = rs_frmRepetitive!ServicePlaceID
!OrderDescription = rs_frmRepetitive!OrderDescription
(Where rs_frmRepetitive is a recordset clone of some form)
and assume that Access will fill out the autonumber field
itself. And it does but with the number that already
exists in the table! It does not see the whole scope or
something?!?
Question is: How to make sure that the OrderID field
(autonumber format) gets the unique number as it should?
thanks in advance.