Re: Calculations on report...
- From: "Duane Hookom" <DuaneAtNoSpanHookomDotNet>
- Date: Fri, 18 Aug 2006 10:25:41 -0500
We don't know what you are attempting to accomplish. I think all of what you
are attempting to do can be done without any code.
If you really need code, then it is important to tell us which section and
event contains the code.
--
Duane Hookom
MS Access MVP
"Newf via AccessMonster.com" <u24600@uwe> wrote in message
news:64f538258162d@xxxxxx
I am new in doing calculation in Access. I am using Access 2000 and need a
little help with If Then Staements using in the Control Source. Do I still
need to DIM anything?? Here is the code that i would like to use that I
thought I could use in Vb but an error is coming up. When I use the
Control
Source do I have to refernce to either the query or table for the variable
that I am using or can I just use the name that I used for that field? I
HOPE
someone can help moi. Thanks in advance.
Dim txt_RRSP As Integer
Dim txt_Totals As Integer
Dim rpt_txt_Fed_Tax As Integer
Dim txt_CFSA_Arrears_Tot As Integer
Dim txt_CFSA_Interest_Tot As Integer
Dim txt_CFPF_Arrears_Tot As Integer
Dim txt_CFPF_Interest_Tot As Integer
txt_CFSA_Interest = rpt_txt_CFSA_Arrears
rpt_txt_CFSA_Arrears_Tot = txt_CFSA_Interest
rpt_txt_CFSA_Interest = txt_CFSA_Interest
rpt_txt_CFSA_Interest_Tot = rpt_txt_CFSA_Interest
rpt_txt_CFPF_Arrears_Tot = txt_CFPF_Arrears
rpt_txt_CFPF_Interest_Tot = rpt_txt_CFPF_Late_Interest
txt_CFSA_Arrears_Tot = fCFSA_Arrears_Tot
txt_CFSA_Interest_Tot = fCFSA_Arrears_Tot
txt_CFPF_Arrears_Tot = fCFPF_Arrears_Tot
txt_CFPF_Interest_Tot = fCFSA_Arrears_Tot
rpt_txt_Totals = rTotals
txt_RRSP = fRRSP
rTotals = fCFSA_Arrears_Tot + fCFSA_Arrears_Tot + fCFPF_Arrears_Tot +
fCFSA_Arrears_Tot
If fRRSP <> 0 Then
rpt_txt_Fed_Tax = rTotals * 0.1
Else
rpt_txt_Fed_Tax = 0
End If
Newf
~Everyone needs a NEWFIE as a friend~
--
Newf
~Everyone needs a NEWFIE as a friend~
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- Re: Calculations on report...
- From: Newf via AccessMonster.com
- Re: Calculations on report...
- References:
- Calculations on report...
- From: Newf via AccessMonster.com
- Calculations on report...
- Prev by Date: Calculations on report...
- Next by Date: Re: Using variables in ... make one subreport first
- Previous by thread: Calculations on report...
- Next by thread: Re: Calculations on report...
- Index(es):
Relevant Pages
|