Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ralph 47
 
Posts: n/a
Default How do I query a future date?

In Excel 2003, I calculate a future date for prescription refill dates based
on one day less than NbrWeeksTillRefill weeks using the following expression.

RefillDateCalc: DateSerial(Year([tbl Prescriptions]![BeginDate]),Month([tbl
Prescriptions]![BeginDate]),Day([tbl Prescriptions]![BeginDate])+[tbl
Prescriptions]![NbrWeeksTillRefill]*7-1)

That works fine, but when I try to query it I get a data type mismatch error
with a date, text or number. Excel seems to recognize it as a date and will
format it as a date any way I wish. I created another field equal to this
field, and can query it using the expression Between [Beginnng Date] and
[Ending Date], but it asks for the parameter value of RefillDateCalc and
returns no results.
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
AHHH! Again JAA149 Excel Discussion (Misc queries) 0 October 31st 05 11:36 AM
HOW DO I CHANGE QUERY DATA TO A DATE RANGE? GRABrendan Excel Worksheet Functions 4 September 27th 05 04:43 AM
How do I calculate a future date in excel? jcg Excel Worksheet Functions 1 September 8th 05 10:53 PM
How do I change the value in cell based on a future date John W Excel Discussion (Misc queries) 2 December 21st 04 01:27 AM
How can I hide points for future dates on a Year to Date chart? rlmills Charts and Charting in Excel 1 November 29th 04 05:23 PM


All times are GMT +1. The time now is 07:21 AM.

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

About Us

"It's about Microsoft Excel"