venkytvs
February 17th, 2000, 03:16 AM
Hi all
I am trying to connect to Paradox3.x from VB. I created a DSN(pepsi) and used ADODB. I am able to connect to it but if I make this as a dll and try to connect from ASP it give an error
"Operation must use an updateable Query"
Error No: 80004005
This is the code I am using
Dim conn As New ADODB.Connection
Private Sub Command1_Click()
Set conn = New ADODB.Connection
conn.ConnectionString = "DSN=pepsi"
conn.Open
'This is the line where I am getting error
conn.Execute "Insert into comtest values ('c010','venky',24,'12/12/76')"
End Sub
Note: This code fails only if I use Insert or Update commands and works fine with Select statement
Thanks in advance
Venky
I am trying to connect to Paradox3.x from VB. I created a DSN(pepsi) and used ADODB. I am able to connect to it but if I make this as a dll and try to connect from ASP it give an error
"Operation must use an updateable Query"
Error No: 80004005
This is the code I am using
Dim conn As New ADODB.Connection
Private Sub Command1_Click()
Set conn = New ADODB.Connection
conn.ConnectionString = "DSN=pepsi"
conn.Open
'This is the line where I am getting error
conn.Execute "Insert into comtest values ('c010','venky',24,'12/12/76')"
End Sub
Note: This code fails only if I use Insert or Update commands and works fine with Select statement
Thanks in advance
Venky