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  

#error or #name? in text box



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2007, 03:28 PM posted to microsoft.public.access.reports
Gntlhnds
external usenet poster
 
Posts: 97
Default #error or #name? in text box

I have a report that I want to access two different ways, one by clicking on
a button on a form (the report gets it's data from the form and two
subforms), or by clicking a button on the switchboard to produce a blank
report so the user can manually fill out the report. When I press the report
button on the form, it works great. Data is filled out if it's available,
and the textbox is blank if there is no data to show. However, when I click
the button on the subform, I get #error or #name? in the fields instead of
blank fields. I have tried using IIF with HasData, IsNull, and IsError, but
nothing produces blank fields. Here is the control source currently for a
few of the fields on the report:

=[Forms]![Contacts]![Call Details Subform].[Form]![Notes]

=Forms!Contacts!Rank

=Forms!Contacts![Call Listing Subform].Form!CallDate
  #2  
Old May 1st, 2007, 01:34 PM posted to microsoft.public.access.reports
Gntlhnds
external usenet poster
 
Posts: 97
Default #error or #name? in text box

I made a work around by creating a new report with blank, unbound text boxes
that I can open from the switchboard. I just couldn't figure out how to get
the text boxes to show up blank if the required bound form wasn't open.

"Gntlhnds" wrote:

I have a report that I want to access two different ways, one by clicking on
a button on a form (the report gets it's data from the form and two
subforms), or by clicking a button on the switchboard to produce a blank
report so the user can manually fill out the report. When I press the report
button on the form, it works great. Data is filled out if it's available,
and the textbox is blank if there is no data to show. However, when I click
the button on the subform, I get #error or #name? in the fields instead of
blank fields. I have tried using IIF with HasData, IsNull, and IsError, but
nothing produces blank fields. Here is the control source currently for a
few of the fields on the report:

=[Forms]![Contacts]![Call Details Subform].[Form]![Notes]

=Forms!Contacts!Rank

=Forms!Contacts![Call Listing Subform].Form!CallDate

 




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 03:38 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.