D
deb
access 2003
optCTorSTorGEN is an option group on the main form fWarrantyUnit.
If there is a change in the selection of the opt group, I would like 3
fields in the subforms table, set to Null where WarrantyUnitID =
strWarrantyUnitID
the subform is fWarrantyDetails and is a continuous form so the fields will
need to be set for each recordset where WarrantyUnitID = strWarrantyUnitID
The fields are optHPorIPorLP, BB1 and BB2 and are all Numeric.
Private Sub optCTorSTorGEN_AfterUpdate()
strWarrantyUnitID = WarrantyUnitID.Value
CurrentDb.Execute "UPDATE [t72WarrantyDetails] SET [optHPorIPorLP] = " &
Null
and [BB1] =Null and [BB2]=Null & " WHERE
[t72WarrantyDetails].WarrantyUnitID = " & strWarrantyUnitID
Thank you in advance for helping me learn!
optCTorSTorGEN is an option group on the main form fWarrantyUnit.
If there is a change in the selection of the opt group, I would like 3
fields in the subforms table, set to Null where WarrantyUnitID =
strWarrantyUnitID
the subform is fWarrantyDetails and is a continuous form so the fields will
need to be set for each recordset where WarrantyUnitID = strWarrantyUnitID
The fields are optHPorIPorLP, BB1 and BB2 and are all Numeric.
Private Sub optCTorSTorGEN_AfterUpdate()
strWarrantyUnitID = WarrantyUnitID.Value
CurrentDb.Execute "UPDATE [t72WarrantyDetails] SET [optHPorIPorLP] = " &
Null
and [BB1] =Null and [BB2]=Null & " WHERE
[t72WarrantyDetails].WarrantyUnitID = " & strWarrantyUnitID
Thank you in advance for helping me learn!