Header info from non-linked table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a report that I want to add a header. The header info comes from a
table other than the tbale that supplies data to the report. How do I do
that?
 
Patrick said:
I have a report that I want to add a header. The header info comes from a
table other than the tbale that supplies data to the report. How do I do
that?


You can use DLookup in a text box expression to retrieve a
value from the other table:
=DLookup("[header field]", "other table")
 
Thanks, Marshall. I was lurking, and this morning, this post of yours
saved my hide :)

Thanks very much for sharing the usefulness of dLookup in providing a
report header(actually up to five lines of headers for me).

I appreciate it!!

Patrick said:
I have a report that I want to add a header. The header info comes from a
table other than the tbale that supplies data to the report. How do I do
that?


You can use DLookup in a text box expression to retrieve a
value from the other table:
=DLookup("[header field]", "other table")
 
Hey, it's a twofer ;-)

If you have more than just a couple of fields to lookup, it
would be more efficient to use code to open a recordset and
retrieve/set all the values once.
--
Marsh
MVP [MS Access]

Thanks, Marshall. I was lurking, and this morning, this post of yours
saved my hide :)

Thanks very much for sharing the usefulness of dLookup in providing a
report header(actually up to five lines of headers for me).

I appreciate it!!

Patrick said:
I have a report that I want to add a header. The header info comes from a
table other than the tbale that supplies data to the report. How do I do
that?


You can use DLookup in a text box expression to retrieve a
value from the other table:
=DLookup("[header field]", "other table")
 
Back
Top