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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Header info from non-linked table
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? |
#2
|
|||
|
|||
Header info from non-linked table
Patrick wrote:
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") -- Marsh MVP [MS Access] |
#3
|
|||
|
|||
Header info from non-linked 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!! On Mon, 09 Jul 2007 16:46:01 -0500, Marshall Barton wrote: Patrick wrote: 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") |
#4
|
|||
|
|||
Header info from non-linked 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] gDareos wrote: 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!! On Mon, 09 Jul 2007 16:46:01 -0500, Marshall Barton wrote: Patrick wrote: 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") |
Thread Tools | |
Display Modes | |
|
|