Results 1 to 3 of 3
  1. #1
    TheBrigg is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    5

    Initial Design and Querying

    Hello All,

    I will try to keep this simple. What I would like to do, is store a list of model numbers in MS Access with some relating data, and then output it in a particular format through Excel.

    What I need help with: I have model numbers similar to 070841. Some are completely unique, and others are essentially the same as a different model. I am trying to find a way to keep models listed individually in the same Access table, but link the related models by ID number. I am having trouble finding a good way to do this and still be able to get relevant data by passing a query to Access. It is important that I use Access to do as much of the manipulation as possible.

    Example:
    01000 Unique (10)
    01001 Same as 01002 and 01003 (3)
    01002 Same as 01001 and 01003 (2)
    01003 Same as 01001 and 01002 (7)
    01004 Unique (4)

    Query values from table, return as:
    01000 - 10
    01001/01002/01003 - 12
    01004 - 4

    I have a lot of experience with Excel and VBA, but my knowledge of Access and SQL are relatively limited. Most work I've done was manipulating data on the client side, but this particular project does not permit that.

    Thank you for any assistance.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    the database solution is called grouping, and in your case most likely using an aggregate query or using the report object feature.

    you must add another field to you table which would be the 'Group' field (or whatever name makes sense to you)

    01000 01000
    01001 0100X
    01002 0100X
    01003 0100X
    01004 01004

    it's difficult to be too precise not knowing your app or user interface but hopefully you get the jist..... the second field exists to allow you to group.

    hope it helps.

  3. #3
    TheBrigg is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    5
    Thank you for the reply.

    The information you gave me helps, I hadn't even thought about grouping and using sum functions etc. and that will work great. I had some other questions, but I thought of an idea while typing this out.

    Thank you again.

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

Similar Threads

  1. Querying from a Query
    By jo15765 in forum Queries
    Replies: 11
    Last Post: 11-21-2010, 08:12 PM
  2. Querying a Subform
    By jonillson in forum Forms
    Replies: 9
    Last Post: 11-19-2010, 12:04 PM
  3. Need help on initial design
    By allykid in forum Database Design
    Replies: 2
    Last Post: 11-09-2010, 01:46 PM
  4. Querying a password DB
    By blacksaibot in forum Programming
    Replies: 2
    Last Post: 05-20-2010, 10:37 AM
  5. Initial Parameter Value?
    By justgeig in forum Queries
    Replies: 7
    Last Post: 12-08-2009, 05:18 PM

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