Results 1 to 6 of 6
  1. #1
    Gameybeets is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    3

    Combo box showing the primary keys instead of the value of the record


    Views: 7 Size: 444.0 KB">example.accdb


    Hello,

    I'm new to database and Access. I'm posting an example of what I'm trying to do here. In the example, I have the vendor table which keeps the record of all the vendors. In the late payment vendor table, I have vendors with late payment which I created with lookup wizard resulting in combo box. I did the same thing to termination table which I only want vendors used in late payment vendor table. When I do that, I no longer see the text value of the vendor name anymore, and now I only see the primary key of the vendor. How can I fix this?
    The reason I have combo box in the table is to create a form later with the combo box already set up.
    Any help is much appreciated!!!

  2. #2
    solly1966 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2016
    Location
    India
    Posts
    2
    Hi, very simple.. in the form design mode, click the combo box field and in the property box, go to -> data tab -> Row Source -> Type SELECT [yrtable].[field1], [yrtable].[fielf2] FROM yrtable ORDER BY [primarykey]
    after you entering this come to ->Format tab -> Column Count-> 2 and in column width enter 0 cm; 3 cm.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I recognize that you are a self-confessed newbie to database and Access. I recommend that you work through this tutorial from RogersAccessLibrary, and then go back to you database. You will learn some concepts of design of tables and relationships, that you can use with any database. Should take 45 minutes to 1 hour.
    This info on Normalization may also be helpful.
    Do you have clear instructions in plain English of what you are trying to do/automate?

    Good luck.

  4. #4
    Gameybeets is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    3
    Quote Originally Posted by solly1966 View Post
    Hi, very simple.. in the form design mode, click the combo box field and in the property box, go to -> data tab -> Row Source -> Type SELECT [yrtable].[field1], [yrtable].[fielf2] FROM yrtable ORDER BY [primarykey]
    after you entering this come to ->Format tab -> Column Count-> 2 and in column width enter 0 cm; 3 cm.
    Thank you. Does this mean I wouldn't be able to see this in a table? Is there anything wrong with the way I'm setting up my database?

  5. #5
    Gameybeets is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    3
    Quote Originally Posted by orange View Post
    I recognize that you are a self-confessed newbie to database and Access. I recommend that you work through this tutorial from RogersAccessLibrary, and then go back to you database. You will learn some concepts of design of tables and relationships, that you can use with any database. Should take 45 minutes to 1 hour.
    This info on Normalization may also be helpful.
    Do you have clear instructions in plain English of what you are trying to do/automate?

    Good luck.
    Thank you for the reply.
    I'm trying to limit the choice of the vendors for the termination table. The user should only choose from the vendors in late payment table instead of showing all the vendors from the vendor list.

  6. #6
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,931
    duplicate post here

    http://www.access-programmers.co.uk/...d.php?t=285177

    @Gameybeets - recommend you read this link

    http://www.excelguru.ca/content.php?184

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

Similar Threads

  1. Use of primary keys
    By Homegrownandy in forum Access
    Replies: 6
    Last Post: 06-29-2015, 01:17 AM
  2. primary keys in four different tables
    By greatlhanderz_15 in forum Access
    Replies: 5
    Last Post: 01-30-2013, 10:04 PM
  3. Replies: 1
    Last Post: 02-17-2012, 10:17 AM
  4. primary/foreign keys
    By st1300 in forum Database Design
    Replies: 38
    Last Post: 12-04-2011, 01:27 PM
  5. Combo boxes both primary keys to select record
    By Alexandre Cote in forum Forms
    Replies: 3
    Last Post: 08-10-2010, 07:11 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