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

VBScript ADO error driving me crazy

Status
Not open for further replies.

labboy999

Programmer
Apr 26, 2001
2
US
Here is my code:

set cnConnection = CreateObject("ADODB.Connection")
cnConnection.Mode = 3
cnConnection.open "project"

set rsCust = CreateObject("ADODB.Recordset")
rsCust.ActiveConnection = cnConnection
rsCust.CursorType = adOpenKeyset
rsCust.Source = "customer"
rsCust.open
rsCust.AddNew

I created an ODBC profile for the connection project when I try to execute this, i get this error: ADODB.REcordset: Unknown runtime error. It happens at the .addnew part, any suggestions?
 
Try adding a lock type for the recordset - for example, adLockOptimistic Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top