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!

Trunc Date - using MS Access Passthrough to Oracle 1

Status
Not open for further replies.

IngDep

MIS
Feb 7, 2008
89
US
Not receiving any records when using the following in the WHERE section of the passthrough query in MS Access to extract data from an Oracle database.

Any insight as to the problem?

AND trunc(Min(CLAIM.CLCL_SVC_DT)) between to_char('01-JUN-08','DD-MM-YY') and to_char('02-JUN-08','DD-MM-YY')
 
Do not compate dates to strings

Your where clause should be
Code:
AND trunc(Min(CLAIM.CLCL_SVC_DT)) between to_date('01-JUN-08','DD-Mon-YY') and to_date('02-JUN-08','DD-Mon-YY')
(Provided CLAIM.CLCL_SVC_DT is a date datatype)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top