Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Formula Glitch

Status
Not open for further replies.

dunkyn

Technical User
Apr 30, 2001
194
US
Based on the date parameter, I am looking up values given the selection criteria and formulas below, and getting inconsistent results.


/////////////////////////////////////////////
Select Expert Criteria
{Table.DateField} = {?AsOfDate}

//////////////////////////////////////////////////
@Formula1

Select {Table.DateField}

Case Date (2003,1,1) to Date (2003,1,31):1
Case Date (2003,2,1) to Date (2003,2,28):2
Case Date (2003,3,1) to Date (2003,3,31):3

Default: 0

/////////////////////////////////////////////////////

@Formula2

Select{@Formula1}

Case 1:13.9
Case 2:13.5
Case 3:13.8

Default: 0


It is strange, because a date parameter of 3/4/2003 will give me the correct values, but a date of 3/31/2003 produces nothing ?

Any suggestions?
 
Resolved. In Formula1 I need to use my date parameter field instead of the database field, as the database is not fully populated for all dates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top