Results 1 to 5 of 5
  1. #1
    santofish is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2014
    Posts
    10

    Data Loss Due to Data Field Type?

    Hello,

    I have received a database that was built by a person that does not work at out company anymore and I'm currently building queries to summarize the data.

    Problem:
    In one of the tables there is a latitude and longitude field, the data type for both fields was set to "number" and the decimal places was set to "auto".
    An example of the data entered is:


    Latitude= 46.254568
    Longitude= -116.871265

    But when I look at the data in the tables it's stored as just either 46 or -116?

    Is there any way to recover the data that was entered or is it lost forever since the field was set up incorrectly?
    I tried changing the data type and the decimal places to 6 but still the same result. Any help would be appreciated thanks! I'm using Access 2013.
    Ryan

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    What is the Field Size? If it's Integer or Long Integer, the decimals were never stored.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Did this application ever work --that is show more decimal places?

    When you look at the table in design view the field type is Number, but what is the in "Field size"?
    I have a table with coordinates --- type is number, field size is Double and decimals Auto.

    It stores many decimal places as per sample below.

    AnimalId GPSLong GPSLat
    1 77.9 47.3
    1 77.34 46.8
    1 78.44 45.32
    2 76.33 48.9
    2 77.45 48.8
    2 78.53 47.54
    3 76.2 49.4
    4 78.23 47.52
    4 78.666 47.66
    5 77.7 49.3
    5 77.334456 48.9


    OOOops: I see Paul has already answered.

  4. #4
    santofish is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2014
    Posts
    10
    Thanks for both of the replies, sorry for the long delay but been battling the flu. Yes the field size is Long Interger, so I guess the data can not be recovered. Just another lesson in making good decision when creating tables!

    Ryan

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Sorry about that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Massive data loss
    By Homegrownandy in forum Access
    Replies: 5
    Last Post: 08-26-2015, 01:08 AM
  2. Random Loss of Data
    By jbstearns in forum Access
    Replies: 14
    Last Post: 01-26-2015, 02:40 PM
  3. Loss of data with Union Query
    By Comiccradle in forum Queries
    Replies: 12
    Last Post: 05-26-2014, 09:41 AM
  4. Replies: 2
    Last Post: 10-22-2012, 05:32 PM
  5. data loss
    By Binu in forum Access
    Replies: 1
    Last Post: 07-21-2010, 05:14 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