G
Guest
Good Day.
I seem to have a wee small problem with an Access database I have created.
The problem is what I would refer to as the 3 foot error (back of chair to
keyboard).
Anyway!
I have built a form that allows users to update a table. The problem is;
I used an “Auto number†field as a primary key and we use this number as the
document number. The “Auto number†does not match up to the number of
records.
Example : There are 143 documents but the Auto number is at 151.
Is there any way I can re - number the table.
As a side note: I think this problem was cause by the way I set up the Form.
The form opens to the first record. I plan on using the following code to
have the form open a “new record†each time.
Private Sub Form_Load()
If Not Me.NewRecord Then
RunCommand acCmdRecordsGoToNew
End If
End Sub
Is someone has a better idea, I could use it.
Thanks
Chomp
I seem to have a wee small problem with an Access database I have created.
The problem is what I would refer to as the 3 foot error (back of chair to
keyboard).
Anyway!
I have built a form that allows users to update a table. The problem is;
I used an “Auto number†field as a primary key and we use this number as the
document number. The “Auto number†does not match up to the number of
records.
Example : There are 143 documents but the Auto number is at 151.
Is there any way I can re - number the table.
As a side note: I think this problem was cause by the way I set up the Form.
The form opens to the first record. I plan on using the following code to
have the form open a “new record†each time.
Private Sub Form_Load()
If Not Me.NewRecord Then
RunCommand acCmdRecordsGoToNew
End If
End Sub
Is someone has a better idea, I could use it.
Thanks
Chomp