Results 1 to 2 of 2

Thread: linking descriptions to a datacombo value

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Posts
    22

    Post

    Hi, I have two datacombo boxes that are populated with number codes fields. One has 'location codes' and the other is 'occupation codes'. These fields come from my 'Claims' table in SQL 7. I have two small tables called 'LocationCodes' and 'OccupationCodes' that have the same codes as in the 'Claims' table and their respective descriptions. What I want to do is make it so that when the user clicks the datacombo box and selects one of the available number codes, the appropriate description for that code will display. Can somebody help?

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

    Post

    You can use TextBox controls that will be bound to the tables that contain the descriptions for the codes. Then, whenever the user selects an item in the ComboBox, use the Find method to move to the appropriate records and show the values. I suppose the Code field in both of the tables is the primary key so the Find method will return only one result.

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