Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Restrict Population to MS Query by Cell Ref.

Hi,
I'm using ODBC to connect to a data source. MS query tables the record
that, in turn, Excel populates for further manipulation.

I would like to restrict the date range of the data to MS query an
therefore to Excel by specifiying the dates in cells within Excel.

For example: Start date (A1) 01/04/04 End date (A2) 20/04/04

What criteria/formula would have be set in MS query to read the lowe
and upper date ranges in excel cells A1 & A2 sheet 1, prior t
populating sheet 2 with the external data?

Is there a better way perhaps?

Many thanks

bean

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Restrict Population to MS Query by Cell Ref.

bean

You need two parameters that are based on a cell. See here

http://www.dicks-clicks.com/excel/Ex...htm#Parameters

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com


"Lordbean " wrote in message
...
Hi,
I'm using ODBC to connect to a data source. MS query tables the records
that, in turn, Excel populates for further manipulation.

I would like to restrict the date range of the data to MS query and
therefore to Excel by specifiying the dates in cells within Excel.

For example: Start date (A1) 01/04/04 End date (A2) 20/04/04

What criteria/formula would have be set in MS query to read the lower
and upper date ranges in excel cells A1 & A2 sheet 1, prior to
populating sheet 2 with the external data?

Is there a better way perhaps?

Many thanks

bean'


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Restrict Population to MS Query by Cell Ref.

Many thanks Dic

--
Message posted from http://www.ExcelForum.com

Reply
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
cell auto population - why 0 when source cell is empty? David Smithz Excel Discussion (Misc queries) 4 June 18th 06 05:35 PM
Cell Population based on a Table JimS Excel Discussion (Misc queries) 2 April 4th 06 04:34 PM
Automatic cell population MazzyMirsa Excel Discussion (Misc queries) 3 February 9th 06 06:15 PM
ComboBox Population of Cell Range Phil Hageman[_3_] Excel Programming 1 April 14th 04 01:56 PM
hyperlink - cell population Dave Peterson[_3_] Excel Programming 0 September 25th 03 04:17 AM


All times are GMT +1. The time now is 11:49 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"