G
Guest
I have a form with a command button that On_Click I would like to run a
calculation based on selections from other text boxes. I have written an
If..Then statement that runs correctly on another (unbound) text box, but
when placed in the On_Click code returns nothing. I know I am missing
something with the command button and would appreciate any help.
(The If..Then statement is the following:
If MedicationName = "Procrit" then
NewDose = txtWeight * 0.45
ElseIf MedicationName = "Aranesp" then
NewDose = txtWeight * 150
End If)
Thank you!
calculation based on selections from other text boxes. I have written an
If..Then statement that runs correctly on another (unbound) text box, but
when placed in the On_Click code returns nothing. I know I am missing
something with the command button and would appreciate any help.
(The If..Then statement is the following:
If MedicationName = "Procrit" then
NewDose = txtWeight * 0.45
ElseIf MedicationName = "Aranesp" then
NewDose = txtWeight * 150
End If)
Thank you!