Replace #ERROR with Text

spectraflame

Well-known Member
Joined
Dec 18, 2002
Messages
830
Office Version
  1. 365
Platform
  1. Windows
I have a simple count formula "=Count([WOType])" that counts the number of records found on the report. Currently if there are no records present, the result is #ERROR. I would like to replace the #ERROR with "No Records Found".

I tried this thinking that a similiar Excel technique would work, but of course it does not. Would it look something like this?

=IF(ISERROR(Count([WOType]),"No Records Found",Count([WOType])))

Matthew
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
hey, this might work? copy and paste returned values using paste special "values" into a new column, select column and use edit-replace.
Find: #ERROR
Replace with: No Records Found

s
 
Upvote 0
alpinescott,

I think you provided an Excel solution, and the OP is looking for an Access solution. Here is a formula that will work on the Access report:

=IIf(IsNumeric([WOType]),Count([WOType]),"No records found")
 
Upvote 0

Forum statistics

Threads
1,221,818
Messages
6,162,154
Members
451,749
Latest member
zack_ken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top