Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $95

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.
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page