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!

Trying To Update Access Table Through Visual Basic 1

Status
Not open for further replies.

jheiser

Programmer
Dec 19, 2003
14
US
I can add values to my table using this code

strSQL = "INSERT INTO NextReportNumber(AutoNumber) " & _
"VALUES('" & nextreport & "')"

I need to update and change the value each time my program runs and I don't know the correct Syntax
 
Code:
strSQL = "UPDATE NextReportNumber SET AutoNumber = '" & nextreport & "'" & _
"WHERE AutoNumber = '" & [i]last known key[/i] & "'"


___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think. faq333-3811
Join the Northern Illinois/Southern Wisconsin members in Forum1064
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top