Results 1 to 6 of 6
  1. #1
    jzacharias is offline Advanced Beginner
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Sep 2010
    Posts
    31

    Text box shows ID field and not the Name

    I have a subform with a text box that I want to show the driver name from the driver table but it only shows the ID field. The control source is Driver_ID and I am using the Default Value =[Forms]![Squad]![Driver]. It functions how I want except for showing the name. I think I understand that the reason for it showing is the Control Source, but I don't have another option to choose besides the Driver_ID in the drop down.

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Use a second Textbox with the name set the visible property of the existing textbox to no.

  3. #3
    jzacharias is offline Advanced Beginner
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Sep 2010
    Posts
    31
    unless my relationship is set wrong, I don't have the option to use any fields from the driver table

  4. #4
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    In that case use a listbox instead of a text box. The Row Source would be:

    Code:
    Select Drivername from drivertable where driverid = [Forms]![Squad]![Driver]

  5. #5
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    oops forgot the control source would be left blank

  6. #6
    jzacharias is offline Advanced Beginner
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Sep 2010
    Posts
    31
    I will try that

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

Similar Threads

  1. Replies: 2
    Last Post: 10-19-2012, 01:44 AM
  2. Add a field that shows similar reports
    By Angrybox in forum Forms
    Replies: 1
    Last Post: 04-11-2012, 01:55 PM
  3. PK field, indexed-no duplicates shows twice in query
    By jhollingsh615 in forum Database Design
    Replies: 2
    Last Post: 05-26-2011, 05:24 PM
  4. Image Shows in Unhide Field Box
    By anoob in forum Access
    Replies: 1
    Last Post: 02-28-2011, 12:49 AM
  5. Replies: 2
    Last Post: 05-05-2010, 02:52 PM

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