Scroll down some
Printable View
Scroll down some
I think that you should post what you have, and we'll guide you if you run into problems. (I was going to add something negative, but decided against it.)
Anyways, how are you supposed to determine this:
The registration clerk will need to enter the number registered for the seminar, then select either the Seminar 1 option button or the Seminar 2 option button. If a company is entitled to a 10% discount, the clerk will click the calculate Total Due command button to calculate the total registration fee
Ok sorry that was a stupid way to put it. Here is what I need help on how do I make the program do 100*X and then do 120*X if check box is checked? On that I really have no code to post.
You should really use option buttons, as one of the choices always has to be selected, and both cannot be selected.
Have a textbox for NumberOfGuests. You should have a checkbox for Discount. If it is checked, get 10% off:
Code:Sub CmdCompute_Click()
If optOneDay = 1 Then
Price = 120
Else
Price = 100
End If
Cost = Price * val(NumberOfGuests.Text)
msg = "Your "
If optDiscount = 1 Then
Cost = Cost - (Cost * .10)
msg = msg & " Discounted "
endif
msg = msg & " Cost is: "
MsgBox msg & format(Cost, "$,$$$.00")
End Sub