B
Barkshire Woods
What I have,
a vet office, with an intake form
on the intake form are three fields relating to services offered at the vets
office.
the three services, rabies, sterlization, nail all come out to dollar amounts.
if the check box is checked yes, we would like the dollar amounts of each
field to tally up at the end of the form.
attempted creating an unbound frame field called strTotal or total or
anything of that nature, but that didn't seem to do a thing.
attempted with out a specific named field for the table and its form.
that also did not work. below is the code i have at the moment.
any ideas?
Option Compare Database
Private Sub Form_AfterUpdate()
'Cost of procedures on animal intake form. Declaring Variables.
Dim sngTotal As Single
Dim sngRabies As Single
Dim sngSpay As Single
Dim sngNail As Single
'Input amounts from boxes checked True on Intake Form.
If (Rabies = True) Then sngRabies = 12
If (Nail = True) Then sngNail = 2
If (Sterlization = True) Then sngSpay = 63
'Calculate the procedures.
sngTotal = sngRabies + sngSpay + sngNail
End Sub
a vet office, with an intake form
on the intake form are three fields relating to services offered at the vets
office.
the three services, rabies, sterlization, nail all come out to dollar amounts.
if the check box is checked yes, we would like the dollar amounts of each
field to tally up at the end of the form.
attempted creating an unbound frame field called strTotal or total or
anything of that nature, but that didn't seem to do a thing.
attempted with out a specific named field for the table and its form.
that also did not work. below is the code i have at the moment.
any ideas?
Option Compare Database
Private Sub Form_AfterUpdate()
'Cost of procedures on animal intake form. Declaring Variables.
Dim sngTotal As Single
Dim sngRabies As Single
Dim sngSpay As Single
Dim sngNail As Single
'Input amounts from boxes checked True on Intake Form.
If (Rabies = True) Then sngRabies = 12
If (Nail = True) Then sngNail = 2
If (Sterlization = True) Then sngSpay = 63
'Calculate the procedures.
sngTotal = sngRabies + sngSpay + sngNail
End Sub