Date issue between Access & Oracle

G

Guest

I have been using Access 2002 as the front end to generate reports connecting
to an Oracle DB. It has worked fine for over 2 years and all of a sudden this
month Access crashes, apparently on a date parameter. The DB (especially date
formats) and my queries have not changed. I deleted and recreated the links
to the DB without effect. The only thing that could have changed, being in an
enterprise environment, are Microsoft patches pushed to our Win XP Pro
desktops. I tested my DB today on a freshly imaged desktop and it still
crashed. Since Access is minimally supported, I'm having a hard time solving
the problem...

Basically, the following (simplified) query in Access runs fine without the
date parameter, and crashes with it:

SELECT *
FROM NTABATCH_REA_STAT_ACCT_RPT
WHERE d_open > #01/01/2006#;

Field d_open has a required general date/time format. When I run the query
in Embarcadero Rapid SQL it runs fine. So I'm wondering if I have to qualify
the format of the date parameter, but I'm not sure how. Any suggestions would
be greatly welcome!

Thanks a bunch.
 
M

MH

The ODBC drivers between Access and Oracle are a real PITA, if there is a
date in Oracle which is outside the range used by Access then the whole
query falls over. Try searching for dates in the Oracle db which are before
01/01/1900 (obviously you will have to use SQL+ for this).

MH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top