Results 1 to 6 of 6
  1. #1
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Form bound control display

    Hi,

    I'm trying to change the display of a bound control on a form to a linked field in another table. Seems like it should be easy to do; I just can't figure it out.

    The bound column is [StudentEnrollment]![AnnualClassNumberID] and is linked to a table called AnnualClassNumbers. The field I want to display is the ClassNumber from the is the AnnualClassNumbers table.

    Thanks and take care,



    Daryl

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You can only bind a control to a field in the RecordSource of the Form. You could display a field from a different table using one of the Domain Functions (DLookup, etc.).

  3. #3
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Thanks for the reply. I have attached an image of the query I am working with. The field AnnualClassNumberID from the StudentEnrollmentT is the field that identifies the course a student is enrolled in. The field contains the primary key (ID) from the AnnualClassNumbersT. Is there any way to set the Form field display to ClassNumber (from AnnualClassNumbersT) and yet be able to change it in a form that would also change it (AnnualClasNUmberID) in the StudentEnrollmentT.

    OR Is there a better way to do this.

    Thanks for having a look.

    Take care,

    Daryl
    Attached Files Attached Files

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You need a ComboBox bound to the AnnualClassNumberID field and a RowSource of the ID and ClassNumber fields of the AnnualClassNumbers table with the ID field display supressed (ColumnWidths= 0";1")

  5. #5
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Thank you! Thank You!

    That was so efficent and esay to do. I truly appreciate your help.

    Take care,

    Daryl

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're welcome. Glad we could help.

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

Similar Threads

  1. Replies: 1
    Last Post: 05-30-2012, 03:51 PM
  2. Bound form with bound combobox
    By Jerry8989 in forum Access
    Replies: 2
    Last Post: 12-05-2011, 01:50 PM
  3. Date Picker Not Updating Bound Control
    By DanKoz in forum Forms
    Replies: 5
    Last Post: 08-18-2011, 07:07 AM
  4. Replies: 1
    Last Post: 06-23-2010, 09:05 AM
  5. Replies: 2
    Last Post: 07-30-2009, 08:02 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