Results 1 to 10 of 10
  1. #1
    askjacq is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    11

    drop down box in form

    I have 2 tables, tContacts and tOrgs. I set the org field in the tContacts to look up the org field in the tOrgs. When I put the org field from tContacts in the form, it won't show up as a drop-down list. When I make it a combo box, the orgs from the tOrgs table don't appear

  2. #2
    askjacq is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    11
    Additional info: it works if I use a table for the form data, but not if I use a query.

  3. #3
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    On this site are three tutorials on Combo Boxes -- Scroll down to them and see what Mike did that you didn't.

    http://www.datapigtechnologies.com/AccessMain.htm

    Alan

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Welcome to the forum!

    Although Access has the capability of creating lookup fields at the table level. It is generally not recommended. This site tell why.

    I would change the org field in your contacts table to a number field (long number datatype) assuming that the primary key field of the org table is an autonumber datatype. Then just use the combo box wizard in your contact form to pull the data from the org table.

  5. #5
    delacra is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2011
    Location
    Dominican Republic
    Posts
    9
    Hi,
    1) you need create a table tContatcs fields contactID PK, ContactName, Org
    2) Create a tOrgs with fields: OrgsID PK, OrgsName field, save and close tables
    3) Open table tContact and in field Org set it as Lookup Wizard and select tOrgs as source...Follow wizard instruction (first optio)...after that save the table and try it... it should be working now...

    Let's me know if this worked for you....

  6. #6
    askjacq is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    11
    Please don't give me table design issues - there's a reason why I designed it this way. i just want to figure out why to get a lookup to be a drop down box in a form when using a query as the data source.

  7. #7
    askjacq is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    11
    this doesn't address using queries as the data source

  8. #8
    askjacq is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    11
    By the way, this worked in Office 2003 - just not Office 2010.

  9. #9
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    When I make it a combo box, the orgs from the tOrgs table don't appear
    Does the row source of the combo box show the applicable table/query you wanted?

    Are the column widths property set to non-zero values?

  10. #10
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Perhaps it is time for you to post a copy of your database. We are guessing and not hitting the bullseye. Time to see the issues so that we can hit the target.

    Alan

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

Similar Threads

  1. Referencing drop down list from form
    By akyramid in forum Queries
    Replies: 1
    Last Post: 03-01-2011, 05:36 PM
  2. Open form from a drop down list
    By ildanach in forum Forms
    Replies: 15
    Last Post: 05-21-2009, 05:40 AM
  3. Adding a drop down box to change form skins
    By intrepid401k in forum Access
    Replies: 0
    Last Post: 01-11-2009, 05:22 PM
  4. Open Form with a drop down list box
    By Rinehart in forum Forms
    Replies: 0
    Last Post: 08-10-2008, 08:53 PM
  5. form drop down
    By arianhojat in forum Forms
    Replies: 0
    Last Post: 06-01-2006, 11:56 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