Error referencing a field on an open form

A

anthony

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?
 
M

Marshall Barton

anthony said:
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.
 
A

anthony

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
 
M

Marshall Barton

anthony said:
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.
 
A

anthony

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top