Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Date issue between Access & Oracle

Discussion in 'Information Technology' started by xmsuser, Jul 28, 2006.

  1. xmsuser

    xmsuser
    Expand Collapse
    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.
     
  2. Loading...


  3. MH

    MH
    Expand Collapse
    Guest

    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


    "xmsuser" <xmsuser@discussions.microsoft.com> wrote in message
    news:F7FD7A30-EAAD-4183-A23E-891DAA19D38A@microsoft.com...
    >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.
    >
     

Share This Page