Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Access 2016 with accdb format. I am trying to read after write the DB and the fields are not updated. If i look at the table in access - the fields are written fine. Only after i exit the form and come back again the field is updated on the screen.

Is there any vb data - apdapter command that i can use in order to flash the buffers to the db ?

What I have tried:

I tried using transaction commit without success. Tried to dispose the adapter and dim it again, tried closing the connection and opening it again. None of these worked.
Posted
Updated 26-May-19 18:44pm

1 solution

 
Share this answer
 
v2
Comments
Jack SunCodeProject 27-May-19 0:45am    
I added to my code the last line and it did not help
sql is string = "Update Customers Set .... Where CusID = 23"

                    
  daCM.UpdateCommand = New OleDbCommand(sql, MyConn)
  daCM.UpdateCommand.Transaction = Transaction
  daCM.UpdateCommand.ExecuteNonQuery()
  daCM.Update(dsCM.Tables("Customers"))
Maciej Los 30-May-19 4:14am    
I believe that `daCM` object has been updated. You did not provide enough information about data binding. So, there is the only place where you should search for issues.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900