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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help I Can't update a Access database

Status
Not open for further replies.

hdougl1

Programmer
Dec 6, 2000
54
0
0
US
Help I Can't update a Access database with the following code any sugestions thanks in advance.

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.ConnectionString= "DRIVER={MICROSOFT Access Driver (*.mdb)}; DBQ=C:\Inetpub\Conn.Open

Set rstProducts = Server.CreateObject("ADODB.RecordSet")
rstProducts.Open "Products", Conn, 3 ,3
rstProducts.AddNew
rstProducts("ProductName") = Request.Form("ProductName")
rstProducts("UnitPrice") = Request.Form("UnitPrice")
rstProducts("ReorderLevel") = Request.Form("ReorderLevel")
rstProducts("LeadTime") = Request.Form("LeadTime")
rstProducts.Update
Conn.Close
Set conn = nothing
rstProducts.Close
Set rstProducts = nothing
 
dont know if it will help but try closing the recordset and setting it to nothing before you close the connection and set it to nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top