Results 1 to 5 of 5
  1. #1
    ultra5219 is offline Advanced Beginner
    Windows 8 Access 2007
    Join Date
    Feb 2013
    Posts
    45

    combo box display field name on textbox

    hi again.. how to set combo box for example doctor name with 2 field which display doctor name and department.


    lets say if i select doctor name : Eric and automatically display doctor department as: Surgery in text box. then i can save patient record on appoinment table
    anyone? here is my sample db

    Thanks..
    Last edited by ultra5219; 05-21-2013 at 02:44 PM.

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Set the textbox controlsource to =[YourComboBoxName].Column(1). This expression cannot be used for bound text box.

  3. #3
    ultra5219 is offline Advanced Beginner
    Windows 8 Access 2007
    Join Date
    Feb 2013
    Posts
    45
    i did try but still not successful, can u edit the sample access for me which i attach above? so that i can explore how u do? sorry im still new on access.. so might be learn more

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    See the modified database. I have added one unbound text box to show use of the expression. I think you do not have to save the department unless one doctor belongs to more than one department.
    Attached Files Attached Files

  5. #5
    ultra5219 is offline Advanced Beginner
    Windows 8 Access 2007
    Join Date
    Feb 2013
    Posts
    45
    Thank You now i understand already.. using expression to control between combo box and text box

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

Similar Threads

  1. Replies: 3
    Last Post: 08-19-2011, 09:25 AM
  2. Replies: 3
    Last Post: 08-18-2011, 07:31 AM
  3. Replies: 5
    Last Post: 08-11-2011, 05:38 PM
  4. Replies: 6
    Last Post: 06-13-2011, 12:14 PM
  5. Replies: 2
    Last Post: 11-16-2010, 10:55 AM

Tags for this Thread

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