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

General ODBC Error

Status
Not open for further replies.

dionu

Programmer
Oct 19, 2001
10
CA
I am trying to add a querytable to an Excel form and I am receiving a general ODBC error at the .Refresh line of the following code... any ideas?

With Worksheets(1).QueryTables.Add(Connection:=strConn, Destination:=Range("A1"))
.Sql = strSQL
.Refresh
End With

I have checked the strConn and strSQL thoroughly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top