OLE DB Query in Excel

J

JOE OROZCO

Is it possible to pass parameters to SQL in an OLE DB query within Excel. For example:

Select * from property where prop_id = ?

Somehow link the parameter to a cell in the spreadsheet or something in like. Thanks.
 
S

ShaneDevenshire

Hi Joe,

You can link parameters from your spreadsheet to SQL statements but right
off hand I can't remember if you need to do this with a VBA SQL line or you
can imbed it directly in an SQL statement. Could you show us the SQL
statement or VBA SQL line.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top