Results 1 to 2 of 2

Thread: DataComboBox and Textbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    3

    Post

    Hi everyone

    I have this question, please help me.

    I have a DataComboBox that contains the Employee Name (but it will stored in database by EmployeeCode instead of EmployeeName), if I select the Employee Name in the DataComboBox, I would like to get the Position display on the textbox corresponding with that Employee. If you know how to do that, can you show me please? Thanks

    QN

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    253

    Post

    You need to insert code in the Click event of the DataCombo that will open the database and find the position of the employee by using the Find method or something like that.

    How to open the database? You can use an ADO Data Control and bind the TextBox to it so then when you move to the appropriate record, it updates automatically.
    Another way is to use a Recordset object and give the TextBox the value of the Position field.

    Hope that will help you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width