Results 1 to 2 of 2
  1. #1
    kfizz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    2

    How to get the representation/lookup value of field instead of its PK from recordset


    I have a form with a field that uses a lookup field to another table to get the representation of a foreign key when selecting data for that field. However, if I access the recordset through VGA (e.g. Me.Recordset("fk_id")) I get the actual ID which makes sense. Is there a way to get the string representation from the recordset or do I need to create a new recordset and use the ID to query the second table?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    You can join the two tables on that field and then all of the fields from both tables are available.

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

Similar Threads

  1. bind field to adodb.recordset field
    By gem1204 in forum Access
    Replies: 7
    Last Post: 04-26-2012, 01:07 PM
  2. Replies: 1
    Last Post: 02-29-2012, 10:13 PM
  3. Use a lookup field to influence values in another field
    By nathanrt in forum Database Design
    Replies: 3
    Last Post: 01-13-2011, 03:40 PM
  4. Lookup using second recordset
    By vavs in forum Programming
    Replies: 7
    Last Post: 08-16-2010, 12:42 PM
  5. Replies: 1
    Last Post: 11-13-2009, 03: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