D darreno Registered User. Local time Today, 12:53 Joined Jun 16, 2007 Messages 54 Nov 16, 2007 #1 I have a couple of checkboxes and would like it to perform calculations when checked. Is it possible?
I have a couple of checkboxes and would like it to perform calculations when checked. Is it possible?
Oldsoftboss AWF VIP Local time Tomorrow, 05:53 Joined Oct 28, 2001 Messages 2,499 Nov 16, 2007 #2 Sure, but we might need a bit more info...
Guus2005 AWF VIP Local time Today, 21:53 Joined Jun 26, 2007 Messages 2,642 Nov 16, 2007 #3 Yes that is possible. Use the click or afterupdate or lostfocus or .... event for a detailed anser we need more info.
Yes that is possible. Use the click or afterupdate or lostfocus or .... event for a detailed anser we need more info.
D darreno Registered User. Local time Today, 12:53 Joined Jun 16, 2007 Messages 54 Nov 16, 2007 #4 When checked, qty*daysinmonth. I put the code into the box and the calculation is correct, but the checkbox is not functioning. Attached is the db sample. Thanks guys. Attachments CheckBox.zip CheckBox.zip 59 KB · Views: 111
When checked, qty*daysinmonth. I put the code into the box and the calculation is correct, but the checkbox is not functioning. Attached is the db sample. Thanks guys.
D darreno Registered User. Local time Today, 12:53 Joined Jun 16, 2007 Messages 54 Nov 16, 2007 #5 I finally figure out how to make it work. I placed an AfterUpdate like so: Private Sub Check1_AfterUpdate() If Me.Jul08 = True Then Me.Jul08 = Me.Jul08 + 1 + [FORMS]![1-Trades]![qty] * 31 End If End Sub Thanks.
I finally figure out how to make it work. I placed an AfterUpdate like so: Private Sub Check1_AfterUpdate() If Me.Jul08 = True Then Me.Jul08 = Me.Jul08 + 1 + [FORMS]![1-Trades]![qty] * 31 End If End Sub Thanks.
Oldsoftboss AWF VIP Local time Tomorrow, 05:53 Joined Oct 28, 2001 Messages 2,499 Nov 17, 2007 #6 Glad you were able to work it out.