Hello,
I have a combobox [cmbComplainee] which has as its Rowsource: ID, Name, Type.
Only Name and Type are visible and once a selection is made Name is visible in the combobox as selected, while ID is stored in the underlying table.
There are many different names but only two different types of Complainee and what I would like is if the user changes the selection so that the type changes, a message box displays (before the update occurs) warning the user that the type is about to be changed.
I have tried using a variety of things such as "on change" and oldvalue but can't seem to get it to work. Someone suggested using a form level variable that grabs the value of cmbComplainee.column(2) when cmbComplainee gets focus and then again beforeupdate and then comparing them.
Do you think this would work and how would you create such a form level variable?
Thanks for any advice.
David
I have a combobox [cmbComplainee] which has as its Rowsource: ID, Name, Type.
Only Name and Type are visible and once a selection is made Name is visible in the combobox as selected, while ID is stored in the underlying table.
There are many different names but only two different types of Complainee and what I would like is if the user changes the selection so that the type changes, a message box displays (before the update occurs) warning the user that the type is about to be changed.
I have tried using a variety of things such as "on change" and oldvalue but can't seem to get it to work. Someone suggested using a form level variable that grabs the value of cmbComplainee.column(2) when cmbComplainee gets focus and then again beforeupdate and then comparing them.
Do you think this would work and how would you create such a form level variable?
Thanks for any advice.
David