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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No record showing error

Status
Not open for further replies.

gimenes2603

Technical User
Aug 25, 2007
1
GB
hi, how to make my text showing 0 when there is no record?
I have a report with 3 subreports , with the total of all. But if one subreports has no record, comes up with #error...
What do i have to do to show 0 ?
i tried this but is not working :

=SeImed([Conservatory Job].[Relatório]![Texto95]="",0,[Conservatory Job].[Relatório]![Texto95])

Thanks

 
The typical syntax is like:
=IIf(subrptA.Report.HasData, subrptA.Report.txtBoxName,0)
You will need to change the name of subrprtA and txtBoxName to match yours and also include the other subreport references.

While you are working on this, you might want to change the name of your text box to something that is understandable rather than "Texto95".

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