A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Header info from non-linked table



 
 
Thread Tools Display Modes
  #1  
Old July 9th, 2007, 08:42 PM posted to microsoft.public.access.reports
Patrick
external usenet poster
 
Posts: 412
Default 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  
Old July 9th, 2007, 10:46 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default 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  
Old July 13th, 2007, 05:26 PM posted to microsoft.public.access.reports
gDareos
external usenet poster
 
Posts: 21
Default 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  
Old July 13th, 2007, 06:36 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.