Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2010
    Location
    NJ, USA
    Posts
    9

    Table Results Issue and Ordering

    Hey there, I've got two questions...



    (I asked this before and got great help, but I think I just need a more basic answer)

    First off, I'm relatively new to Access and am learning it to build a database for my company, starting with an Inventory database. I'm using Access 2007 and have little to no experience with VBA; the macros I've gotten the hang of though.

    First question: I have a "Find Part" Form. In this form, I have:

    • Company Name (Drop down box), "Find Record" button
    • Part Number (Drop down box)
    • Quantity (Drop down box)
    • Location (Drop down box)


    Now, the issue I'm having is with the button. It works with the Company Name, but the issue is, regardless of the company selected, it displays ALL the companies in my "Customer" Table. Is there ANY way to just display the results of the Company selected?

    Secondly, in my drop down box for Companies, is there anyway to list them alphabetically? I have to keep adding company names as I get them, but would prefer if they were listed alphabetically rather then as the latest entries at the bottom.

    Thanks in advance,
    AcmeGear Steve

  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's the code behind the Find Record button? Somehow you need to add a restriction on company.

    For the second, instead of just listing the table in the row source, click on the ellipsis to the right and build a query, including a sort on that field.
    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. Ordering data from a query
    By kulanga in forum Queries
    Replies: 9
    Last Post: 03-24-2010, 08:16 AM
  2. Replies: 0
    Last Post: 02-24-2010, 12:56 AM
  3. Populate Table with query results
    By sparkyboy2406 in forum Queries
    Replies: 1
    Last Post: 02-23-2010, 03:51 PM
  4. Replies: 5
    Last Post: 06-30-2009, 09:30 AM
  5. Replies: 1
    Last Post: 08-04-2008, 03:30 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