Results 1 to 4 of 4
  1. #1
    mark81 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2014
    Posts
    3

    Combobox to link to 2 queries

    I am only relatively new to Access so need some help with this, what I would call simple.



    I have created a few queries which I would like to have easy access to from a dropdown box on a form. I have created a form with a combobox (dropdown), and I want to have a list of queries so when a user selects one query they can access that query automatically (with or without having to press a button).
    like a list of HTML in webpages, however I don't have programming experience so if there any simple way to do this it would be appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,962
    Requires VBA code to open the query selected from the list.

    DoCmd.OpenQuery Me.comboboxname

    But why open queries instead of form or report?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    mark81 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2014
    Posts
    3
    I am thinking I will open a report. Do I still need to code this, if so, how can I access to type code in, I didn't know there was a section to code.

    Quote Originally Posted by June7 View Post
    Requires VBA code to open the query selected from the list.

    DoCmd.OpenQuery Me.comboboxname

    But why open queries instead of form or report?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,962
    Actually, have a choice of macros or VBA. Review http://office.microsoft.com/en-us/ac...010341717.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Help creating queries from combobox input
    By argsemapp in forum Forms
    Replies: 6
    Last Post: 11-25-2013, 05:09 PM
  2. Combining 2 queries into one for combobox
    By T_Tronix in forum Access
    Replies: 2
    Last Post: 11-21-2013, 10:16 AM
  3. Link two queries without common fields
    By JGrots in forum Queries
    Replies: 27
    Last Post: 04-04-2013, 01:31 PM
  4. Replies: 6
    Last Post: 05-14-2012, 08:32 PM
  5. Link ComboBox to field in a table
    By DrDebate in forum Forms
    Replies: 0
    Last Post: 04-27-2007, 08:03 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