G
Guest
On my form, I have an unbound text box [txtpercentatSite]. I also have
several option buttons. When the user selects option button 'Site' (option
1), I want [txtpercentatSite] to autofill "100%". But if the user selects
options button 'Both' (option 3), I want the user to be able to enter any
number in [txtpercentatSite]. I have tried "=IIf([fraSiteOrMOSO]=1,1)" in
Control Source, but the field is then not editable.
Note - [txtpercentatSite] already has an After Update event procedure:
Private Sub txtpercentatSite_AfterUpdate()
Me!txtpercentatSite = (Me!txtpercentatSite / 100)
End Sub
several option buttons. When the user selects option button 'Site' (option
1), I want [txtpercentatSite] to autofill "100%". But if the user selects
options button 'Both' (option 3), I want the user to be able to enter any
number in [txtpercentatSite]. I have tried "=IIf([fraSiteOrMOSO]=1,1)" in
Control Source, but the field is then not editable.
Note - [txtpercentatSite] already has an After Update event procedure:
Private Sub txtpercentatSite_AfterUpdate()
Me!txtpercentatSite = (Me!txtpercentatSite / 100)
End Sub