Calculated Field in a Report

RBoshears

New Member
Joined
Oct 28, 2003
Messages
21
I'm using a calculated field in a report drawing information from a query. The report uses data from 3 queries, and works fine with the previos two. However, I'm getting #name and #error returns when I attempt the following formula for the record source. =IIf([qryGiantEagleReport3.YTD Sharp Volume]>0,"Yes","No"). Basically what I'm doing is using a query to filter for certain records, then I want the report to populate either "yes" or "no" based on the volume field results. Any suggestions?? Thanks.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Shouldn't it be
=IIf([qryGiantEagleReport3].[YTD Sharp Volume]>0,"Yes","No") ?
 
Upvote 0
I had it that way, and I was getting an #error. I have it the same way as my 1st post in another field refrencing the 2nd of the 3 queries, and it works fine. I don't know, that's what has me pulling my hair out.
 
Upvote 0
actually [qryGiantEagle3]![YTD Sharp Volume] produces the #error, using the "." with or without the inner brackets makes no difference. It is also wanting a parameter value, and I can't figure out what is triggering that.
 
Upvote 0
Try building the statement in a query using the function builder to get the correct syntax, then try copying it over to the Control Source of your report.
 
Upvote 0

Forum statistics

Threads
1,221,607
Messages
6,160,792
Members
451,671
Latest member
kkeller10

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