This is a frustrating one.
Code:
Set db3 = CurrentDb
Set db4 = db3.OpenRecordset("ItemAcceptance")
Set fldColumns = db4.Fields
curRec = 1
db4.MoveFirst
While Not db4.EOF
For Each fldEnumerator In db4.Fields
If fldEnumerator.Name = "ID" Then
db4.Edit: fldEnumerator.Value = curRec: db4.Update
curRec = curRec + 1
End If
// various other routines //
db4.MoveNext
Wend
I want the first entry to have an index of 1, each entry following that to increment by one. It will increment by one but gives some other number to the first entry. I tried this
Code:
ALTER TABLE temptextdelimit ALTER COLUMN ID COUNTER(1,1)
query, which doesn't work at all. Thanks for looking at this problem.
edit: so at the moment, the ID starts at 6463. If there is any way to change this back to 1 that would be great. The order of these items is critical at this stage of the d-base.