M
martinmike2
Hello,
I have an option group that allows the user to select types of base
housing. If the record has been changed to an "Off Base" address,
then we need to remove the Base Housing selection. I can't use the
OldValue property because the record has already been saved.
If I try to manipulate the record itself:
dim db as dao.database, rst as dao.recordset
set db = currentdb
set rst = me.recordset
rst.edit
rst!BASE_HOUSE_TYPE = 0
rst.update
rst.close
set rst = nothing
set db = nothing
I get it removing the selection, but every control on the form shows
#name? untill i close out the form and reopen it. I tried adding a
me.refresh at the end of the code to no effect.
I have an option group that allows the user to select types of base
housing. If the record has been changed to an "Off Base" address,
then we need to remove the Base Housing selection. I can't use the
OldValue property because the record has already been saved.
If I try to manipulate the record itself:
dim db as dao.database, rst as dao.recordset
set db = currentdb
set rst = me.recordset
rst.edit
rst!BASE_HOUSE_TYPE = 0
rst.update
rst.close
set rst = nothing
set db = nothing
I get it removing the selection, but every control on the form shows
#name? untill i close out the form and reopen it. I tried adding a
me.refresh at the end of the code to no effect.