April 24, 2012 at 4:03 am
Hi
I have the following SQL WHERE statement in my SQL code which is in a OLE DB query in a 2010 excel file.
where convert(varchar(10),datestarted,111) between '2012/04/16' and '2012/04/22'.
Is there a way to reference date cells that are in the same file e.g.
where convert(varchar(10),casestarted,111) between '$J$2' and $K$2'
Thank you in advance for any help.
Mally
April 24, 2012 at 8:57 am
I don't think this is exactly what you're looking for, but it might point you in the right direction:
http://stackoverflow.com/questions/1285686/excel-use-a-cell-value-as-a-parameter-for-a-sql-query
_________________________________
seth delconte
http://sqlkeys.com
April 24, 2012 at 10:07 am
Hi Seth
Thanks for your reply.
I'll try this tomorrow when i get back to work.
Kind regards
Mally
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply