Can you post your code?
Steve
> In VB code I open a table which has records in it and add new records to this
> table. After I've completed adding the new records, I go to the last record
[quoted text clipped - 5 lines]
>
> Sarah
Sarah - 13 Jul 2007 15:32 GMT
Do While (Not (MyTable.EOF))
If IsNull(MyTable!SeqNo) Then
MyTable.Edit
MyTable!SeqNo = k + 1
k = k + 1
MyTable.Update
Else
k = MyTable!SeqNo
End If
MyTable.MoveNext
Loop
MyTable.MoveLast
> Can you post your code?
>
[quoted text clipped - 9 lines]
> >
> > Sarah
Sarah - 13 Jul 2007 20:44 GMT
I figured it out. I did a delete query to the table I was adding new records
to before I added the new records and apparently the table was not getting
refreshed after the delete. So the code was looking at deleted records that
were not removed from the table.
> Can you post your code?
>
[quoted text clipped - 9 lines]
> >
> > Sarah