Re: Calculations on report...
- From: "Newf via AccessMonster.com" <u24600@uwe>
- Date: Tue, 22 Aug 2006 16:54:59 GMT
As in for RRSP it will be entered on the form by the user.
Duane Hookom wrote:
I would rather not guess which of these are controls on reports or fields in
a report's record source. Did you tell us how "to see if there was an RRSP
contribution"?
Generically, you could create a user-defined function by opening a new blank
module and entering something like:
Function GetQCTax(pstrProvince as String, _
dblTotal as Double) as Double
If pstrProvince = "QC" Then
GetQCTax = dblTotal * 0.16
Else
GetQCTax = 0
End If
End Function
Save this module as "modTaxCalcs". In your report, you can set a control
source of a text box to something like:
=GetQCTax([PROVINCE], [TOTAL])
This database is used to calculate what the person is owed from[quoted text clipped - 32 lines]
overpayment.
Newf
~Everyone needs a NEWFIE as a friend~
--
Newf
~Everyone needs a NEWFIE as a friend~
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-reports/200608/1
.
- Follow-Ups:
- Re: Calculations on report...
- From: Duane Hookom
- Re: Calculations on report...
- References:
- Calculations on report...
- From: Newf via AccessMonster.com
- Re: Calculations on report...
- From: Duane Hookom
- Re: Calculations on report...
- From: Newf via AccessMonster.com
- Re: Calculations on report...
- From: Duane Hookom
- Re: Calculations on report...
- From: Newf via AccessMonster.com
- Re: Calculations on report...
- From: Duane Hookom
- Re: Calculations on report...
- From: Newf via AccessMonster.com
- Re: Calculations on report...
- From: Duane Hookom
- Re: Calculations on report...
- From: Newf via AccessMonster.com
- Re: Calculations on report...
- From: Duane Hookom
- Re: Calculations on report...
- From: Newf via AccessMonster.com
- Re: Calculations on report...
- From: Duane Hookom
- Re: Calculations on report...
- From: Newf via AccessMonster.com
- Re: Calculations on report...
- From: Duane Hookom
- Calculations on report...
- Prev by Date: Re: Where condition on reports doesn't work when passing parameter from the forms
- Next by Date: Re: Bug? Report displaying Chinese character sometimes but not always
- Previous by thread: Re: Calculations on report...
- Next by thread: Re: Calculations on report...
- Index(es):
Relevant Pages
|