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

ado connection wont execute vfp

Status
Not open for further replies.

yostyid

Programmer
Oct 28, 2003
15
US
So I am trying to connect an excel 2000 spreadsheet to foxpro7. I can return a recordset ok, but writing to the db is odd. I can do..

dbconn.execute "create table test(testcol text)
and it will be done. But if I try to exec ute a procedure or create a view, it fails. Here is my code..

Dim conn As ADODB.Connection
Dim rs, rs2 As ADODB.Recordset
Set rs = New ADODB.Recordset
Set rs2 = New ADODB.Recordset
Set conn = New ADODB.Connection
'On Error GoTo error_out
With conn
.CursorLocation = adUseServer
.Open "DSN=db"
End With
conn.Execute "create view custcheck as select * from customer"

..cursors seem to go ok. but proc's and views fail. I am new to this, so its probably something simple. Any help would be great.
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top