Thread: MS Query
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] Don@nospamdmdnet.us is offline
external usenet poster
 
Posts: 1
Default MS Query

I am writing an MS Query and it is working I'm just wondering if I can pass a
parameter to the query from the spread sheet by refrencing a cell.
Something like this
Select transamnt from gldetail where fiscalyear = $A$1
if I hardcode the year in the SQL it works fine,
I guess I can write in VBA but I was trying to take a shortcut?
Any ideas? TIA