B
BBC via AccessMonster.com
I have a number of tables (in the form of dataSheets but they are not
subforms) on a single TAB control (one tabel per tab number) on my Parent
form. Some of the fields on the Child (TAB) tables are "lookup" (comboboxes)
as specified in the table's original properties. I would like to be able to
change these lookups "on the fly" so would like to move them into code. I am
not sure how to code the VBA necesary to access/set the RowSource
programatically (not sure where either, but assuming when I load the Parent
form).
I have a module (called cboPopUp("the_table_code") that sets the rowsource
for all my popups.
Ex. Me.Gender.RowSource=cboPopUp("Gender") ' sets up all entries
idcode="gender"
I would like to use this same technique for the popup fields on the
datasheets rather than specifying them in the table setup properties (lookup
tab). Sorta Pseudo code like maybe
Me.Tabname/Tabnumber.tabelname.fieldname.rowsource=cbopopup("gender")
thoughts ?
subforms) on a single TAB control (one tabel per tab number) on my Parent
form. Some of the fields on the Child (TAB) tables are "lookup" (comboboxes)
as specified in the table's original properties. I would like to be able to
change these lookups "on the fly" so would like to move them into code. I am
not sure how to code the VBA necesary to access/set the RowSource
programatically (not sure where either, but assuming when I load the Parent
form).
I have a module (called cboPopUp("the_table_code") that sets the rowsource
for all my popups.
Ex. Me.Gender.RowSource=cboPopUp("Gender") ' sets up all entries
idcode="gender"
I would like to use this same technique for the popup fields on the
datasheets rather than specifying them in the table setup properties (lookup
tab). Sorta Pseudo code like maybe
Me.Tabname/Tabnumber.tabelname.fieldname.rowsource=cbopopup("gender")
thoughts ?