Results 1 to 6 of 6
  1. #1
    violeta_barajas is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Apr 2016
    Posts
    13

    Wrong MS Access Date interpretation from Linked Oracle table

    Hi,



    I have a front end 2003 .mdb MS Access application with Oracle linked tables. When opening one of the oracle linked tables in MS Access, the date column is not being interpreted correctly since 01-Jan-00 (oracle date) is being interpreted as 01/01/1900. I've tried formatting the column in MS Access but this does not work. In Oracle the column data type is DATE.


    Does anyone the reason for this issue?​



    Regards,
    Violeta

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,929
    date/time fields are actually stored as a form of decimal numbers. the bit before the dp relates to the date and the bit after (for access) is the time expressed as number of seconds/no of seconds in a day. The bit before the db for today (11th Aug 2016) in Access is 42593, tomorrow it will be 42594. So zero is 01/01/1900 (i.e. there have been 42593 days since that date).

    I've never had to think about it before, but Oracle probable has the same date zero, but is showing a 00 year rather than 1900. If you format your access date as dd-mmm-yy it will probably show the same thing as you see in Oracle

    Either way the date you are getting is 0 - presumably meaning 'no date'

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917

  4. #4
    violeta_barajas is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Apr 2016
    Posts
    13
    Thank you Ajax, you are right. I totally assumed that it was 2000 because 1900 does not make sense (in this case for this app). But it might be an error of entry of data. I queried the data converting the date to char and that's how it came the 1900.


    Thanks!

  5. #5
    violeta_barajas is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Apr 2016
    Posts
    13
    Thanks RuralGuy!

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Glad to help where I can.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Combobox with linked Oracle table
    By Peter_ in forum Forms
    Replies: 2
    Last Post: 01-08-2016, 07:46 AM
  2. Replies: 6
    Last Post: 04-05-2015, 07:33 AM
  3. Date Field - Access - from Linked Table
    By lynnmc26 in forum Access
    Replies: 4
    Last Post: 06-27-2014, 08:51 AM
  4. Replies: 3
    Last Post: 08-09-2013, 05:12 AM
  5. Linked Excel Table Showing Wrong Value
    By lukejc1 in forum Import/Export Data
    Replies: 1
    Last Post: 11-21-2012, 10:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums