Queying oracle database with MS Access

0 pts.
Tags:
Access
I am new to Oracle. I am trying to create a query in MS Access on linked oracle tables that use a date range like this: Between FormatDateTime(Now()) And FormatDateTime(DateAdd("yyyy",-2,Now())) This works as long as I dont connect any other tables and add other parameters in other attached fields. It took me quite some time to figure out the function above as I understood that oracle handles dates differently. I need to be able to query oracle tables from MS Access and use dynamic date ranges (as above) and then add parameters to other feilds in linked tables. What have I missed. Thanks in advance. Mike
ASKED: May 17, 2006  12:23 AM
UPDATED: May 17, 2006  10:54 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Oracle is expecting the date to come in as a date. With the formatdatetime, it is probably being presented to Oracle as a string. You should be able to set the criteria as: Between Now() and DateAdd(“y”,-2,now())

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following