I have a form with a subform, i.e., frmMain and frmMainSub. frmMainSub is set to continuous forms. When I enter the ComboBox ExpenseType I set a field in that record named Edit to = ”X”. What I would like to do is update a field in another table, tblExpenseType.ExpenseType, with the selection I just made in that record. I can get rid of the “X” a step later.
TBLEXPENSETYPES
ExpenseType
..Day Rate
..Per Diem
..Travel
..Miscellaneous
TBLEXPENSEITEMS
ExpenseType ExpenseItem
..DayRate ..Standard
..Per Diem ..Standard
..Travel ..Airfare
..Travel ..Mileage
..Miscellaneous ..Supplies
..Miscellaneous ..Speaker Fees
TBLEXPENSETYPE
ExpenseType
qryViewExpenseItems is tblExpenseType.ExpenseType linked to tblExpenseItems.ExpenseType
The table behind the ComboBox ExpenseType is TBLEXPENSETYPES.
The query behind the ComboBox ExpenseItem is qryViewExpenseItems.
When an expense type is selected in ComboBox ExpenseType, the selection needs to update TBLEXPENSETYPE.ExpenseType. The query behind ComboBox ExpenseItem now will only display the items in that expense type. For instance, if Day Rate is selected, only Standard would show up. If Miscellaneous were selected, Supplies and Speaker Fees would show up.
I hope this helps. I couldn’t find any other way to do it.