N
Newf via AccessMonster.com
I have a text box on my report to show the final calculation. The user enters
a few numbers on the form. I have it setup so when the report is opened thses
run.
Basically the user enters the RRSP and I need to find out the tax rate. If
RRSP <> 0 then tax rate = 0 if not Fed Tax = .10. This all is calc by using
the Total on the report - Total is gotten by adding 2 fields that is done by
the Control Source) - rpt_txt_Totals. Can I actually take the values on a
Report to use to in Calculations?? Anyways here is what I have done and its
showing blank.
Private Sub Report_Open(Cancel As Integer)
Dim txt_RRSP As Integer
Dim rpt_txt_Totals As Integer
Dim rpt_txt_Fed_Tax As Integer
rpt_txt_Totals = rTotals
txt_RRSP = fRRSP
If fRRSP <> 0 Then
rpt_txt_Fed_Tax = rTotals * 0.1
Else
rpt_txt_Fed_Tax = 0
End If
End Sub
Thanks in advance
a few numbers on the form. I have it setup so when the report is opened thses
run.
Basically the user enters the RRSP and I need to find out the tax rate. If
RRSP <> 0 then tax rate = 0 if not Fed Tax = .10. This all is calc by using
the Total on the report - Total is gotten by adding 2 fields that is done by
the Control Source) - rpt_txt_Totals. Can I actually take the values on a
Report to use to in Calculations?? Anyways here is what I have done and its
showing blank.
Private Sub Report_Open(Cancel As Integer)
Dim txt_RRSP As Integer
Dim rpt_txt_Totals As Integer
Dim rpt_txt_Fed_Tax As Integer
rpt_txt_Totals = rTotals
txt_RRSP = fRRSP
If fRRSP <> 0 Then
rpt_txt_Fed_Tax = rTotals * 0.1
Else
rpt_txt_Fed_Tax = 0
End If
End Sub
Thanks in advance