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!

MyOLEDB

Status
Not open for further replies.

Swi

Programmer
Feb 4, 2002
1,963
0
36
US
I have downloaded the above but when I attempt to connect to a certain table it says the table does not exit even though it actually does. Any ideas.


' Set your objects
Set MYSQLCON = New ADODB.Connection
Set MYSQLRS1 = New ADODB.Recordset

With MYSQLCON
.CommandTimeout = 10000
.ConnectionTimeout = 10000
.CursorLocation = adUseServer
.Open "Provider=MySQLProv;" & _
"Location=999.999.999.99;" & _
"Data Source=xxxxx;" & _
"User Id=xxxxx;" & _
"Password=xxxxxxx;"
End With


Set MYSQLRS1 = New ADODB.Recordset
MYSQLRS1.Open "SELECT * FROM elements;", MYSQLCON, adOpenDynamic, adLockOptimistic, adCmdText

Swi
 
Check the connection userid and make sure it has authorization to access the table.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top