Sep 14th, 2000, 03:03 PM
Now there may or may not be a much simpler way to do things, so I'll give a brief description of what I am trying to do.
I have a form for a purchasing application that I am helping on. The old way that this worked is the user would have to enter all of the information regarding a supplier every time. Now all of the supplier info is in a database (which is being accessed through ODBC).
What I want to do is have a DataCombo box with the various supplier names, and then have the specific supplier info fields populated based on that selection (contact person, adress, etc...)
I have set up 2 ADO data controls (data1 and data2 for reference). The first refers to the 'Name' field of the supplier table. The second refers to the entire Supplier Table. I have the DataCombo Box funtioning, but I somehow need to have it update data2 to whichever data1 is referring to when a selection is made. I have tried simply assigning the AbsolutePosition of data1 to data2 ( the expression I tried was data1.Recordset.AbsolutePosition = data2.Recordset.AbsolutePosition). That didn't work.
If anyone can offer any advice it would be MUCH appreciated. I either need a different way of approaching this, or I need to make data2 point to the same record as data1.
I have a form for a purchasing application that I am helping on. The old way that this worked is the user would have to enter all of the information regarding a supplier every time. Now all of the supplier info is in a database (which is being accessed through ODBC).
What I want to do is have a DataCombo box with the various supplier names, and then have the specific supplier info fields populated based on that selection (contact person, adress, etc...)
I have set up 2 ADO data controls (data1 and data2 for reference). The first refers to the 'Name' field of the supplier table. The second refers to the entire Supplier Table. I have the DataCombo Box funtioning, but I somehow need to have it update data2 to whichever data1 is referring to when a selection is made. I have tried simply assigning the AbsolutePosition of data1 to data2 ( the expression I tried was data1.Recordset.AbsolutePosition = data2.Recordset.AbsolutePosition). That didn't work.
If anyone can offer any advice it would be MUCH appreciated. I either need a different way of approaching this, or I need to make data2 point to the same record as data1.