Results 1 to 6 of 6
  1. #1
    GEONPS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    4

    adding data from table 1 to table 2

    I have two tables they both share column 'Mile Markers'. Table 1 lists all mile marker from 0-60 in 0.1 mile increments, in order. It also has a column for x and y coordinates. Table two only lists 435 random mile markers. Is there a way to add the correct coordinates to the 435 mile markers in table 2 from table 1?

    Thanks for any help,

    Screen shot of table 1
    Click image for larger version. 

Name:	table 1.JPG 
Views:	4 
Size:	41.7 KB 
ID:	8197


    Screen shot of table 2


    Click image for larger version. 

Name:	table 2.JPG 
Views:	3 
Size:	17.5 KB 
ID:	8198

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    In theory yes, but in actual practice (i.e. in MS Access) I'm not sure. Because your mile marker values are decimal numbers, many of them cannot be represented internally in the computer with 100% accuracy. (limitation of binary representation).

    But you have not shown screenshots of MS Access tables - those are Excel. Please post the same data but using MS Access tables. Note Table2 needs X and Y fields as well.

    John

  3. #3
    GEONPS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    4
    Mile MarkerTables
    Click image for larger version. 

Name:	table 1.JPG 
Views:	4 
Size:	131.9 KB 
ID:	8203


    Mile marker without coordinates
    Click image for larger version. 

Name:	table 2.JPG 
Views:	4 
Size:	69.7 KB 
ID:	8204

  4. #4
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    You can make an update query, joining the two tables on [Mile Marker], and including all the fields for [Odomenter Readings]. Update [Odometer readings].[x] to [mm db].[x] and [Odometer readings].[y] to [mm db].[y]

    This probably will work - but note the caveat I mentioned in my previous post, about decimal numbers and computers.

    John

  5. #5
    GEONPS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    4
    Thanks for your help John


    Good start?

    Click image for larger version. 

Name:	query.JPG 
Views:	4 
Size:	46.1 KB 
ID:	8206

  6. #6
    GEONPS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    4
    It worked!!!! Thank you very much John! You Rock!!!!!!!!!!!!!

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

Similar Threads

  1. Replies: 7
    Last Post: 04-03-2012, 12:29 PM
  2. Replies: 3
    Last Post: 12-19-2011, 11:18 AM
  3. Adding data to a table
    By Jbelle7435 in forum Programming
    Replies: 17
    Last Post: 06-13-2011, 07:30 AM
  4. Replies: 1
    Last Post: 11-04-2010, 12:57 PM
  5. Adding a table cannot enter data
    By tak4 in forum Queries
    Replies: 0
    Last Post: 02-03-2009, 10:04 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