Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update field when checkbox selected

Status
Not open for further replies.

dmadsen11

Technical User
Sep 8, 2007
1
First... I am absolutely new to VBA programming, but I have done quite a bit of programming in AutoLisp. What I want to accomplish is to update a field (formatted as currency) to add a set dollar value to the current value of the field if a checkbox is selected. I have a series of 12 checkboxes in a form, and if one or more of them are selected or de-selected, I want the TOTAL field to update accordingly.

Any help is greatly appreciated!

Thanks,
Dave
 
Perhaps on AfterUpdate of each checkbox:

If Me.NameOfCheckbox then
Me.NameOfTextBox = Me.NameOfTextBox + DollarAmount
Else
Me.NameOfTextBox = Me.NameOfTextBox - DollarAmount
End If

Let them hate - so long as they fear... Lucius Accius
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top