Phantom
2010-03-14 20:39:27 UTC
Greetings, programs.
Does anyone know if it is possible to use a parameter in a Micosoft
ODBC Query on OS X Office 2008? I'd like to set a particular cell
within the spreadsheet to act as a parameter in this example query:
select * from mytable where project=$A$1
will something along these lines work? I tried it, even using a full
worksheet reference:
=Sheet1!$A$1
... but no luck. If anyone's done this, I'd love to hear how. I'm
thinking I'll be forced to use Applescript to update the SQL, which
isn't too bad:
tell application "Microsoft Excel"
set sql of query table 1 of worksheet 5 to somethingelse
end tell
still, thought there might be a solution in Office 2008; I noticed that
Microsoft seems to provide for that in Office 2010 on the Windows side.
thanks guys
P.
Does anyone know if it is possible to use a parameter in a Micosoft
ODBC Query on OS X Office 2008? I'd like to set a particular cell
within the spreadsheet to act as a parameter in this example query:
select * from mytable where project=$A$1
will something along these lines work? I tried it, even using a full
worksheet reference:
=Sheet1!$A$1
... but no luck. If anyone's done this, I'd love to hear how. I'm
thinking I'll be forced to use Applescript to update the SQL, which
isn't too bad:
tell application "Microsoft Excel"
set sql of query table 1 of worksheet 5 to somethingelse
end tell
still, thought there might be a solution in Office 2008; I noticed that
Microsoft seems to provide for that in Office 2010 on the Windows side.
thanks guys
P.