Share via

#Error in Access Report

Anonymous
2014-09-14T05:10:46+00:00

I have created a very simple scenario to test the error but I cannot figure out what's wrong.

I have created a table as below

Department    Section


HR                  Admin

I create a Report and create only one text box in the whole report. In the Control Source of the text box, I type =[Section], then it gives #Error in Print Preview

But if I type Section, it gives the result Admin

The name of textbox is renamed as "SectionTxt", so there is no circular reference.

I wonder if Section is a reserved word that caused the problem, any suggestion?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2014-09-14T18:44:03+00:00

Section is definitely a reserved word.  Forms and reports both have a detail section as well as various header and footer sections.

There are so many reserved words that it's a good idea to avoid using a real word as the name of anything you create.  Make the name more descriptive by adding something to it, e.g. DeptSection.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2014-09-14T06:35:58+00:00

    Change =[Section], to Section(remove =[ ] )       

    If you are not sure then you can always select the control source in the data column/control source row

    Was this answer helpful?

    0 comments No comments