Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update access field using vb

Status
Not open for further replies.

jono261970

Programmer
Jun 28, 2002
182
GB
hello,

I am using the following code to update a field in access. My aim is to actually overwrite the existing data and not append.Could somebody help me with this?


rs1.AddNew

rs1!year7 = Text3.Text
rs1.Update

thanks in advance

jono


A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
 
Assuming that you are using DAO, change
Code:
   rs1.AddNew
To
Code:
   rs1.Edit

If you are using ADO then eliminate the AddNew.
 
thank you so much golom.

jono


A good fortune may forbode a bad luck, which may in turn disguise a good fortune.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top