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 referencing a field on an open form



 
 
Thread Tools Display Modes
  #1  
Old April 22nd, 2009, 04:22 PM posted to microsoft.public.access.reports
anthony
external usenet poster
 
Posts: 59
Default Error referencing a field on an open form

I have an open form with data displayed. I need some of that data in a
report. My report, which is bound to a table, has an unbound control
into which is typed:

="Please bring " & [Forms]![frmNewChildGuide]![txtChild]

This produces an error on the report's page. If I type the same thing
into the immediate window, the result displays correctly

The "Please bring" will display on its own but as soon as I add the
reference to the form, I get #error

What am I doing wrong?
  #2  
Old April 22nd, 2009, 05:20 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Error referencing a field on an open form

anthony wrote:

I have an open form with data displayed. I need some of that data in a
report. My report, which is bound to a table, has an unbound control
into which is typed:

="Please bring " & [Forms]![frmNewChildGuide]![txtChild]

This produces an error on the report's page. If I type the same thing
into the immediate window, the result displays correctly

The "Please bring" will display on its own but as soon as I add the
reference to the form, I get #error



That implies that the form is no longer open or that one of
the names is misspelled.

--
Marsh
MVP [MS Access]
  #3  
Old April 22nd, 2009, 05:41 PM posted to microsoft.public.access.reports
anthony
external usenet poster
 
Posts: 59
Default Error referencing a field on an open form

Well, a reboot has cured the problem which is irritating as I spent a
lot of time scratching my head over this. I couldn't see why success
in the immediate window wouldn't replicate on the damn report!

Thanks, as usual, for your help and advice

  #4  
Old April 22nd, 2009, 08:27 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Error referencing a field on an open form

anthony wrote:

Well, a reboot has cured the problem which is irritating as I spent a
lot of time scratching my head over this. I couldn't see why success
in the immediate window wouldn't replicate on the damn report!



That doesn't add up in my book. Keep you eyes open for
other anomalous happenings, this problem may(?) be the first
symptom of some kind of corruption.

--
Marsh
MVP [MS Access]
  #5  
Old April 23rd, 2009, 09:05 AM posted to microsoft.public.access.reports
anthony
external usenet poster
 
Posts: 59
Default Error referencing a field on an open form

You might well be right. I had a lot of trouble with Access when I
used the Google Desktop index. When I removed Google Desktop
everything improved. I've since installed the Microsoft version
(Instant Access, I think) so I'm now nervous again

 




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 10:27 AM.


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