Dependent, non-bound, combos and record browsing

ShanePresley

New Member
Joined
Jun 10, 2004
Messages
7
I know dependent combo boxes have been covered, and I have that working. My problem is setting the values when the user browses records.

I am building a data dictionary app and I have three entities 'Data Package' (database), 'Data Group' (table) and 'Data Element' (column). In this particular form the user will map one Data element to another to establish a source/target relationship. The form looks something like this:

cmbSrcDP cmbTgtDP
cmbSrcDG cmbTgtDG
cmbSrcDE cmbTgtDE

txtSrcDE_ID txtTgtDE_ID

The DP is a 'SELECT *', the 'DG' is dependent on the DP, and the 'DE' is dependent on the 'DG'. The 'DE' combo boxes populate the txtID fields which are bound to fields in the mapping table.

When browsing the records, the text boxes update, but how can I work backwards to set the DP, DG, and DE recordsets and default values. It seems that I would have to:
* find the DP (database) of the DE (column)
* set the default value of the DP combo
* then Requery the DG(??)
* set it's default value
* requery the DE(??)
* set DE's default value.

Does anyone have any examples of this being implemented? Specifically, setting the default value from a query.

Any help is appreciated.

Thanks!
Shane
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,221,848
Messages
6,162,415
Members
451,762
Latest member
Brainsanquine

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top