Results 1 to 6 of 6
  1. #1
    marisacoul is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    27

    Smile Linking Combo Box in table to Combo Box in Form

    Hi there!



    I have a field in my table that it set up perfectly with a combo box and 2 options. However I'd like this field and a field in my form to be linked, and for the same combo box drop down to appear in the form. I would also like this to happen with another field and corresponding form, except that mutiple values to be allowed.

    I would like any changes made to the form to appear in the table and vice versa, but for the fields to be working from the same combo boxes.

    This has probably been asked and resolved before but I'm new to this, forgive me...

    Marisa

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    The source query for both, the form and the table, should be the same.
    If the field is CreditCardName,
    the query should be pulling from the table tCreditCards. (Visa, MC, Discover)
    This way BOTH are pulling the same data.

    If you are using a form, theres no reason to have the table field be set to a combo box.

  3. #3
    marisacoul is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    27
    Quote Originally Posted by ranman256 View Post
    The source query for both, the form and the table, should be the same.
    If the field is CreditCardName,
    the query should be pulling from the table tCreditCards. (Visa, MC, Discover)
    This way BOTH are pulling the same data.

    If you are using a form, theres no reason to have the table field be set to a combo box.
    Yes... Maybe I should prevent users from editing the values in the table, and only have them input in the form. Do you know how to do this?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Make a form menu. They click a Client button that opens the frmClients., etc.
    all point and click guided.

  5. #5
    marisacoul is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    27
    Quote Originally Posted by ranman256 View Post
    Make a form menu. They click a Client button that opens the frmClients., etc.
    all point and click guided.
    Sorry I'm not understanding. How do I create a form menu? Also... when I try to create the dropdown for the form it's only showing one option. This is what I'm putting for row source: "Canada"; "International" and only international is coming up...


    Marisa

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by marisacoul View Post
    Hi there!

    I have a field in my table that it set up perfectly with a combo box and 2 options. <snip>
    This is known as a "look up FIELD" (bad), as opposed to a "look up TABLE" (good).

    See
    The Evils of Lookup Fields in Tables
    http://access.mvps.org/access/lookupfields.htm

    Also, you might read
    The Ten Commandments of Access
    http://access.mvps.org/access/tencommandments.htm


    Users (IMHO) should NEVER have direct access to tables.

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

Similar Threads

  1. Replies: 11
    Last Post: 09-03-2015, 11:12 AM
  2. Replies: 3
    Last Post: 08-27-2015, 09:01 PM
  3. Linking combo box to text box
    By BorderInfo in forum Forms
    Replies: 4
    Last Post: 11-16-2014, 09:22 PM
  4. Linking two combo box in a form
    By thedavix in forum Forms
    Replies: 3
    Last Post: 04-29-2012, 04:19 AM
  5. Problems linking form combo box to report
    By novice2011 in forum Queries
    Replies: 3
    Last Post: 09-08-2011, 03:50 PM

Tags for this Thread

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