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

SQL in the VBA for Excel

Status
Not open for further replies.

DaveMac

Technical User
Apr 9, 2000
161
US
Need help running SQL statement in excel.

Not sure where to begin but here is where I am.

I made an ODBC connection to an AS/400 DB

I have an SQL statement that when run in WIN_SQL runs fine.

I now need to add a text_box or cell that allows users to enter data and then click or something to run the query with that data as the where

So does anyone have a sample of the code to call the connection?
And then an example of how to pass the value?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top