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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

9999 in date range generates error

Status
Not open for further replies.

SJG0526

Programmer
Jul 5, 2002
108
US
We're using Crystal Reports 8.5. In VB6 we have:

Code:
CRPrt.SelectionFormula = "{Dtl.MDate} in Date (" & DatePart("yyyy", BegDate) & "," & DatePart("m", BegDate) & "," & DatePart("d", BegDate) & ") to Date (" & DatePart("yyyy", EndDate) & "," & DatePart("m", EndDate) & "," & DatePart("d", EndDate) & ")"

Getting a dll error when the enddate = 12/13/9999. It works if the enddate is 12/31/3999. Has anyone run into this problem and if so, do you know why and what the max date would be to make it work?

Thanks
 
Crystal won't store 12/13/3999 as such, but translate it into an internal formal. I'd suppose that 12/13/9999 is beyond the allowable ranges.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top