I have several text boxes on a form that are populated with certain values depending on the value chosen on a combo box. These textboxes are populated with currency values with help of macros. Problem is that I also have a check box that when checked must populate the last textbox with a value of "0" and disregard the value assigned by macro, but only when checked. If the user unchecks the box then the macro must run and assign its value. The first part works fine. When the checkbox is checked it assigns "0", but when it is unchecked it returns and Action Failed on the macro. How can i make this work? I hope i have made myself clear. What i have so far this on the after update on the checkbox:
If Me.EXEMPTED_DED UCTION.Value = True Then
Me.DEDUCTIONS.V alue = 0
Else
DoCmd.RunMacro "McrDefaultValu e"
End If
End Sub
If Me.EXEMPTED_DED UCTION.Value = True Then
Me.DEDUCTIONS.V alue = 0
Else
DoCmd.RunMacro "McrDefaultValu e"
End If
End Sub
Comment