A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Getting #Error in report field



 
 
Thread Tools Display Modes
  #1  
Old May 26th, 2004, 04:51 PM
David
external usenet poster
 
Posts: n/a
Default Getting #Error in report field

I'm Getting #Error in some report fields (not all), the field does exist in the source query.
Here is my control source:

=IIf(NZ([email],"")="","No Data",[email])

The odd thing is if I put a hidden field on the screen callex txtEmail with a control source of Email and put txtEmail in the above control source, it works ?!?

I am confused !
  #2  
Old May 26th, 2004, 06:34 PM
Ken Snell
external usenet poster
 
Posts: n/a
Default Getting #Error in report field

Don't be confused. In reports, if you wish to use a field's value when the
field is in the report's recordsource, you must do one of the following
items (from post by Marshall Barton, MVP, this morning):

"...if you want to refer to a field in the report's
record source, you also need to use it in a detail section
control's ControlSource, either as a bound field or in an
expression. This somewhat annoying requirement is because
of an Access optimazation where reports (unlike forms) do
not waste time retrieving fields that it thinks are not
used."


--
Ken Snell
MS ACCESS MVP


"David" wrote in message
...
I'm Getting #Error in some report fields (not all), the field does exist

in the source query.
Here is my control source:

=IIf(NZ([email],"")="","No Data",[email])

The odd thing is if I put a hidden field on the screen callex txtEmail

with a control source of Email and put txtEmail in the above control source,
it works ?!?

I am confused !



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.