Results 1 to 3 of 3
  1. #1
    stu_C is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Mar 2010
    Posts
    38

    Question Automatically run parameter from field details

    Hello all


    I will try and explain what I am trying to do.
    I currently have a list of companies in a drop down list on a order form, what I want to try and do is choose the company for example "Screwfix" from the drop down list, then click a command button to show all previous orders for screwfix in a query.

    I currently have a parameter query to do this using parameters but would be very helpful if I could just click a single button and uses the dropdown list selection rather than typing it in again.

    I think its fairly simple to do but been racking my brain and cant solve it

    Drop Down List Name: DDLCompanyList
    Command Button Name: BTNPreviousOrders
    Query Name: QryPreviousOrders
    Form Name: FrmOrderingForm

    anyone who can help would be appreciated

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Please post a jpg of your tables and relationships so readers can see what you are dealing with.

  3. #3
    JamesDeckert is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    It sounds like you want the combobox to do a record lookup for the company data on your form, then a subform showing the previous orders. No need for a button or parameter query.
    See if this helps
    https://www.youtube.com/watch?v=EdH1aIWaD-0
    You'll just need the subform containing the previous orders.

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

Similar Threads

  1. Replies: 5
    Last Post: 04-22-2014, 04:27 PM
  2. Mirroring Field Details
    By spleewars in forum Programming
    Replies: 3
    Last Post: 03-23-2012, 11:44 AM
  3. Automatically Update Query Parameter w/ Code
    By benthamq in forum Programming
    Replies: 2
    Last Post: 08-20-2011, 03:46 PM
  4. Replies: 3
    Last Post: 04-22-2010, 08:52 PM
  5. Replies: 4
    Last Post: 01-19-2010, 05:36 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