Results 1 to 6 of 6
  1. #1
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159

    ComboBox Filter with foreign keys?

    Hi all,

    I want to create a combo box filter - easy enough usually

    However - the field I want to use is a foreign key field which, while it displays a meaninful description - it stores the id rather than the text

    I want to create a combobox filter, but when I do all I see is the id's - which are meaningless to the user.

    Is there a way to get these foreign key filters to display a meaningful text description??



    Thanks for reading!

    Rich.

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Is your foreign key field a Lookup field?

  3. #3
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    It is indeed.

  4. #4
    R_Badger is offline Knows a few tricks
    Windows XP Access 2003
    Join Date
    Feb 2012
    Location
    Suffolk, UK
    Posts
    262

  5. #5
    R_Badger is offline Knows a few tricks
    Windows XP Access 2003
    Join Date
    Feb 2012
    Location
    Suffolk, UK
    Posts
    262
    For interest and completeness also beware table level lookup fields are evil and must be punished.

    For why see this:

    http://access.mvps.org/access/lookupfields.htm

  6. #6
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Thanks Dude,

    It was a combobox filter I wanted, rather than a regular combobox.

    Thanks though, I realised what I had to do when looking at this and that I just had to tweak the rowsource sql in the property sheet to get it to display the filter categories I wanted.

    In regard to not using lookup fields in a table - I use lookup tables rather than fields - how else are you supposed to make it clear for the user when they are inputting data?

    Interesting.

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

Similar Threads

  1. primary/foreign keys
    By st1300 in forum Database Design
    Replies: 38
    Last Post: 12-04-2011, 01:27 PM
  2. Need help with foreign keys
    By acdougla17 in forum Access
    Replies: 1
    Last Post: 09-26-2011, 03:50 PM
  3. Design dilemma; multiple tables with same foreign keys?
    By squirrly in forum Database Design
    Replies: 9
    Last Post: 08-16-2011, 10:43 AM
  4. Foreign keys in a consolidated table
    By threepwoodjr in forum Database Design
    Replies: 3
    Last Post: 01-14-2011, 11:25 PM
  5. Primary/foreign keys + relationships
    By tripptofer in forum Database Design
    Replies: 0
    Last Post: 08-12-2009, 07:44 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