carlosweiss
Programmer
I'm using Access 2000 and Microsoft Jet Engine 4.0 and I'm using these kind of sentences to make updates to the DB:
The problem is that sometimes the updates are not reflected immediately - i.e.: right after the above update, I run a Select statement on the same table and I don't see the change I've just made. I expected that it wouldn't happen if I run the CommitTrans statement.
Thanks!
Code:
Dim Aconn As New ADODB.Connection
Aconn.Open "Provider='Microsoft.JET.OLEDB.4.0';Data _
Source='c\myDB.mdb'"
Aconn.BeginTrans
strSQL = "update customers set name = 'John' where id = 1"
Aconn.Execute strSQL
Aconn.CommitTrans
Aconn.Close
The problem is that sometimes the updates are not reflected immediately - i.e.: right after the above update, I run a Select statement on the same table and I don't see the change I've just made. I expected that it wouldn't happen if I run the CommitTrans statement.
Thanks!