Results 1 to 7 of 7
  1. #1
    QuickJeff is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    3

    Finding Coordinates

    So I started with Excel, but I want to take the leap to access.
    I think in the long haul it would be easier to manipulate. I do understand that I am still in "excel mode", this is the only factor I am stumped by making the switch.
    Click image for larger version. 

Name:	Coordinates.PNG 
Views:	21 
Size:	48.0 KB 
ID:	24810


    What would be the best way to query the above with access?
    Attached Thumbnails Attached Thumbnails Coordinates.PNG  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You are still in Excel mode, so this layout is wrong , In access it would be 3 columns:

    row,col,result
    73,32,156

    you query row = 73, col=32 and get 156

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Be aware that "row" and "result" are reserved words in Access.

    So if you have a table with fields "iRow", "iCol" and "iResult", to retrieve a value, use a query:
    Code:
    SELECT iResult FROM MyTable WHERE iRow = 73 AND iCol = 32;

  4. #4
    QuickJeff is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    3
    So to "normalize the data I could fill in the blanks from A4 to A5 with the missing lengths. Ex 30,31,32,33,34,35,36.

    I didn't mention that I deal with eights (1/8,1/4, etc.) Would it be best to normalize the data with fractions or decimals?

    Ex: 30 1/8, 30 1/4, - OR - 30.125, 30.250

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    So to "normalize the data I could fill in the blanks from A4 to A5 with the missing lengths. Ex 30,31,32,33,34,35,36.
    No - you have not provided any heading so no idea what your data is, so responders have been using the excel row/columns as references.

    So assuming the values in col A are thicknesses and in row 2 are widths then your query would be

    Code:
    SELECT iResult FROM MyTable WHERE thickness= 73 AND width = 32;
    However it is quite possible that you don't need a table as 'complete' as you have. If it is based on some sort of calculation it is possible that you only need to store the 'step changes'. Despite my suggested field names, it doesn't look like this relates to material sizes, but if it did, you would only need to store the sizes actually available then can determine what is the smallest efficient size to supply the required width and thickness.

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I didn't mention that I deal with eights (1/8,1/4, etc.) Would it be best to normalize the data with fractions or decimals?
    Up to you. if you always deal in eigths and that is your unit of measure, stick with it. If you have other units such as metric (and again making assumptions since you have not told us enough) 3mm approximates to 1/8" (it is 0.118 inches against 0.125) - would that be good enough or not? Maybe you need two fields, a value and a unit of measure so you can easily convert from one to the other.

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You could post your dB for analysis......

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

Similar Threads

  1. Replies: 9
    Last Post: 08-03-2015, 11:38 AM
  2. Need help with coordinates query
    By matt_fdz in forum Queries
    Replies: 4
    Last Post: 05-19-2015, 10:36 PM
  3. Passing form Left and Top positioning coordinates
    By GraeagleBill in forum Programming
    Replies: 7
    Last Post: 11-18-2013, 08:12 AM
  4. Replies: 1
    Last Post: 11-12-2013, 10:37 AM
  5. GPS coordinates mapping on google map
    By engr_saud1 in forum Forms
    Replies: 1
    Last Post: 05-29-2013, 05:41 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