[RESOLVED] VB 2008 Link one combobox to another on datagridview-VBForums
Results 1 to 2 of 2

Thread: [RESOLVED] VB 2008 Link one combobox to another on datagridview

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2004
    Location
    South Charleston, WV, USA
    Posts
    487

    Resolved [RESOLVED] VB 2008 Link one combobox to another on datagridview

    I have a datagridview for the transactions table. On the datagridview there is a combobox column for the type id field in the transactions table. This combobox displays the transaction type name from the transaction types table and puts the transaction type id into the transactions table. That much is okay. But each transaction type belongs to one of several categories. I have a categories table. The category id field in the transaction type record points to the id of the categories table. The category id is not in the transactions table, it is in the transactions types table. I need to know how to link the categories combo box on the datagridview to the category id in the transactions types combobox, which isn't even there right now. At present the transaction types combobox does not display the category id. It displays the transactions type name. Do I need to add another combobox to link the categories combo to the types combo?

    I need to have it first and foremost so it will display the correct category when existing records are pulled up. I think I could do this with a join to the transactions type table in the categories combobox. But that wouldn't cause the transaction type combo to filter by category when a new entry is made.

    Can someone advise as to the correct way to link comboboxes in this type of heirarchy?

    I am using VB.NET 2008 and an Access database.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    May 2004
    Location
    South Charleston, WV, USA
    Posts
    487

    Re: VB 2008 Link one combobox to another on datagridview

    Resolved, I think.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.