LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MS Query & Criteria

I'd like to use a cell reference containing a date from a
worksheet in my MS Query to filter the record set.

I'm receive a syntax error when specifying the cell in the
SQL query shown below:

WHERE (EXCEL_FOrwardPlanning.fStartDate<='Summary - Perth'!
B4:D4) AND (EXCEL_FOrwardPlanning.fStopDate={ts '2004-06-
21 00:00:00'})

Does MS query allow you to use data from worksheets as
part of the query criteria and if so, what would be the
correct format?

Many thanks in advance.

Mark
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query criteria based on a changing criteria list bwilk77 Excel Discussion (Misc queries) 2 May 27th 09 04:03 PM
Query criteria J-LL Excel Discussion (Misc queries) 0 January 16th 09 03:08 PM
Convert hard coded query criteria to Parameter Query Melanie[_2_] Excel Discussion (Misc queries) 0 July 15th 08 09:59 PM
db query with dynamic criteria Stanley Excel Discussion (Misc queries) 1 January 19th 06 07:47 PM
query criteria question Dcbrown428 Excel Discussion (Misc queries) 1 November 18th 05 05:20 PM


All times are GMT +1. The time now is 12:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"