dciadmin
IS-IT--Management
- May 10, 2002
- 34
Used Access to create two tables that are linked ... the item table and the tool table. The item table has a field called toolid which is linked to the tool table with a field called toolid ...
In VB6 I have a datagrid that when a row is selected, all of my bound boxes to the item table are updated according to their linked field. I want to have a combobox or datacombobox that is linked to both of the tables ... the combobox is driven by the toolid in the item database but when the dropdown is clicked it will show the actual toolname field from the tool table instead of the toolid.
I want to be able to click through the datagrid and have the toolname show for each record even though it is in another database. Basically the same way a Lookup works in Access.
Any sample code on how to do that? I understand that there is a way using VB.NET ... something about displaymember, etc. ... but I only have VB6.
Any insight is appreciated ..
JL
In VB6 I have a datagrid that when a row is selected, all of my bound boxes to the item table are updated according to their linked field. I want to have a combobox or datacombobox that is linked to both of the tables ... the combobox is driven by the toolid in the item database but when the dropdown is clicked it will show the actual toolname field from the tool table instead of the toolid.
I want to be able to click through the datagrid and have the toolname show for each record even though it is in another database. Basically the same way a Lookup works in Access.
Any sample code on how to do that? I understand that there is a way using VB.NET ... something about displaymember, etc. ... but I only have VB6.
Any insight is appreciated ..
JL