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!

Failed to Open Rowset - Select Expert Date Criteria 1

Status
Not open for further replies.

TheLibrary

Programmer
Nov 19, 2003
37
US
Crystal Reports 9

Attempt to use Select Expert to limit entries based on date/time values and I get the following error messages:

"Failed to open rowset"

"Details: 22007:[IBM]Client Access Express ODBC Driver (32bit) [OD2/400 SQL] SQL0180 - Syntax of date, time, or timestamp value not valid"

Any suggestion to allow use of date/time data from database?
 
Found a work around!

Write a formula for a date range:
@DateRange = If {Data.Date} < CurrentDate - 31 or {Data.Date} > CurrentDate + 31 then &quot;out&quot; else &quot;in&quot;

Include in Selection Criteria:
@DateRange = &quot;in&quot;

This will only include records within +/- 31 days of today. Apply any other range of dates accordingly!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top