Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2002: single record from table as report header?

Status
Not open for further replies.

TheElephantMan

Programmer
Jun 18, 2004
42
US
Hi, all.

I have a report where its information is generated based on a single date value stored as the sole record in a table. When I try to display that date on the header of the report, I get "#Name?", instead.

A little assistance would be greatly appreciated.

Thanks in advance,
TEM
 
insert a text box and put something like

= "Report Name " & [FIELDNAME]

hope this helps
 
Hi, again.

Unfortunately, I get the same thing: "#name?". The table that I am pulling the information out of is not the same table/query as the source for the report. Could that be part of the problem?

Thanks, again.

TEM
 
You could use a parameter for the report header value.

Or if you are executing the report from a form, and the information you want displayed is contain somewhere on the form then you could use something like

Code:
="Report Name " & [forms]![form name]![control name]
 
Try:
=DLookup("[TheField]","[TheTable]")

BTW: next time please provide your current expression that is causing the error as well as the table and field names.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top