Results 1 to 9 of 9

Thread: help with combo box

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    13

    help with combo box

    VB 2005
    im using two combo box and i bind the two

    (cb_dailyplanter and cb_dailyhacienda)
    -cb_dailyplanter-contains the list planter name
    -cb_dailyhacienda-contains the list of hacienda name

    whenever i change the cb_dailyplanter the data of the cb_dailyhacienda changes, it depends which planter owns the hacienda

    ex.

    planter ------------hacienda
    henry--------------Ahacienda
    -----------------Bhacienda
    my problem is i want to get the primary key of hacienda not the hacienda_name (Ahacienda,Bhacienda)

    this is the table

    hac_num -------hac_name
    1-----------------Ahacienda
    2------------------Bhacienda

    how to get the primary key of the table if the hac_name(hacienda name is displayed on the combo box)
    Last edited by syntax101; Apr 12th, 2008 at 12:44 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
  •  



Click Here to Expand Forum to Full Width