I am using a Visual Basic form and an Access table for the back end. To add a record to the table i use the code below:
With adoTable.Recordset
.AddNew
.Fields("order_number) = LastOrderNumber + 1
.Fields("customer_id"
= txtPartNumber
.Fields("invoice_date"
= Date
.Update
End With
97% of the time this works fine, but there has been times where a record is put in that is not picked up by the recordset. When I open the access table, the record is there, just like it should be, but it does not show up in my VB program. When I compact the access database, which is like formatting it, it works fine.
Any ideas??....i'm stumped
Thanks.
Tim
With adoTable.Recordset
.AddNew
.Fields("order_number) = LastOrderNumber + 1
.Fields("customer_id"
.Fields("invoice_date"
.Update
End With
97% of the time this works fine, but there has been times where a record is put in that is not picked up by the recordset. When I open the access table, the record is there, just like it should be, but it does not show up in my VB program. When I compact the access database, which is like formatting it, it works fine.
Any ideas??....i'm stumped
Thanks.
Tim