Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIF help

Status
Not open for further replies.

StormcrowRahl

IS-IT--Management
Feb 13, 2006
9
US
I need help writing an IIF statement that will evaluate a calculated control(which calculates the sum of a column), to cause a page break when the sum is equal to 20.
 
You can add a page break control in your report and then use code like:
Code:
If Me.txtCalcCtrl = 20 Then
    Me.pgbrkCtrl.Visible = True
  Else
    Me.pgbrkCtrl.Visible = False
End If
or
Code:
    Me.pgbrkCtrl.Visible = (Me.txtCalcCtrl = 20)

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top