N
Newf via AccessMonster.com
Good day! I have this If statement calculation that I am trying to place in
the Control Source of a text box (rpt_txt_Fed_Tax) on my Report. This is the
If statement:
If txt_RRSP <> 0 Then
rpt_txt_Fed_Tax = rpt_txt_Tot_ROEC * 0
Else
If frm_cmb_Province = "QC" Then
If rpt_txt_ROEC > 5000 Then
rpt_txt_Fed_Tax = rpt_txt_Tot_ROEC * .10
Else
rpt_txt_Fed_Tax = rpt_txt_Tot_ROEC * .05
Endif
Else
rpt_txt_Fed_Tax = rpt_txt_Tot_ROEC * .10
Endif
Endif
This is what I tried and it is not working.
=IIf([txt_RRSP] <> 0, [rpt_txt_Tot_REOC] * 0, IIf([frm_cmb_Province] = â€QCâ€,
IIf([rpt_txt_ROEC] > 5000, [rpt_txt_Tot_Roec] * .10, [rpt_txt_Tot_Roec]*.05,
[rpt_txt_Tot_ROEC] * .1)))
Now I have this one completed and it works fine:
If frm_txt_RRSP <> 0 Then
rpt_txt_Que_Tax = rpt_txt_Tot_ROEC * 0
Else
If frm_cmb_Province = "QC" Then
rpt_txt_Que_Tax = rpt_txt_Tot_ROEC * .16
Else
rpt_txt_Que_Tax = rpt_txt_Tot_ROEC * 0
Endif
Endif
=IIf([txt_RRSP] <> 0,0,IIf([cmb_Province]="QC",([rpt_txt_Totals]*0.16,0))
I HOPE someone can see my problem.
the Control Source of a text box (rpt_txt_Fed_Tax) on my Report. This is the
If statement:
If txt_RRSP <> 0 Then
rpt_txt_Fed_Tax = rpt_txt_Tot_ROEC * 0
Else
If frm_cmb_Province = "QC" Then
If rpt_txt_ROEC > 5000 Then
rpt_txt_Fed_Tax = rpt_txt_Tot_ROEC * .10
Else
rpt_txt_Fed_Tax = rpt_txt_Tot_ROEC * .05
Endif
Else
rpt_txt_Fed_Tax = rpt_txt_Tot_ROEC * .10
Endif
Endif
This is what I tried and it is not working.
=IIf([txt_RRSP] <> 0, [rpt_txt_Tot_REOC] * 0, IIf([frm_cmb_Province] = â€QCâ€,
IIf([rpt_txt_ROEC] > 5000, [rpt_txt_Tot_Roec] * .10, [rpt_txt_Tot_Roec]*.05,
[rpt_txt_Tot_ROEC] * .1)))
Now I have this one completed and it works fine:
If frm_txt_RRSP <> 0 Then
rpt_txt_Que_Tax = rpt_txt_Tot_ROEC * 0
Else
If frm_cmb_Province = "QC" Then
rpt_txt_Que_Tax = rpt_txt_Tot_ROEC * .16
Else
rpt_txt_Que_Tax = rpt_txt_Tot_ROEC * 0
Endif
Endif
=IIf([txt_RRSP] <> 0,0,IIf([cmb_Province]="QC",([rpt_txt_Totals]*0.16,0))
I HOPE someone can see my problem.