473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Adding My Contact Details to Reports.

A fairly recent convert to Access I have succeeded in getting it to work
well on my current fairly simple requirements.

Can someone help me with another step?

I have three simple reports.

Income / Expenses and Car Business Usage.

These are mainly for the Tax office and I would like to add my name address
etc to the report header section.

I could add it as a label, but there is presumably a way of displaying the
one record of a table called My details.

Can anyone point me in the right direction?

I have not yet got to grips with VBA / SQL programming.
Thanks
Mike

www.mikethebass.moonfruit.com


Mar 5 '06 #1
2 1237
Use DLookup() to retrieve the value from the table and place it on the
report.

Let'a assume your MyDetails table has these 2 fields:
TheVariable Text (primary key)
TheValue Text

Enter records like this:
TheVariable TheValue
======== =======
OwnerName Acme Limited
OwnerAddress 99 Some Street, SomeTown

On your report, you can set the Control Source of a text box to:
=DLookup("TheValue", "MyDetails", "TheVariable='OnwerName'")

For more info on how to use DLookup(), see:
Getting a value from a table: DLookup()
at:
http://allenbrowne.com/casu-07.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Mike Abbott" <mi*********@msn.com> wrote in message
news:du**********@news6.svr.pol.co.uk...
A fairly recent convert to Access I have succeeded in getting it to work
well on my current fairly simple requirements.

Can someone help me with another step?

I have three simple reports.

Income / Expenses and Car Business Usage.

These are mainly for the Tax office and I would like to add my name
address
etc to the report header section.

I could add it as a label, but there is presumably a way of displaying the
one record of a table called My details.

Can anyone point me in the right direction?

I have not yet got to grips with VBA / SQL programming.

Mar 5 '06 #2

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:44***********************@per-qv1-newsreader-01.iinet.net.au...
Use DLookup() to retrieve the value from the table and place it on the
report.

Let'a assume your MyDetails table has these 2 fields:
TheVariable Text (primary key)
TheValue Text

Enter records like this:
TheVariable TheValue
======== =======
OwnerName Acme Limited
OwnerAddress 99 Some Street, SomeTown

On your report, you can set the Control Source of a text box to:
=DLookup("TheValue", "MyDetails", "TheVariable='OnwerName'")

For more info on how to use DLookup(), see:
Getting a value from a table: DLookup()
at:
http://allenbrowne.com/casu-07.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Mike Abbott" <mi*********@msn.com> wrote in message
news:du**********@news6.svr.pol.co.uk...
A fairly recent convert to Access I have succeeded in getting it to work
well on my current fairly simple requirements.

Can someone help me with another step?

I have three simple reports.

Income / Expenses and Car Business Usage.

These are mainly for the Tax office and I would like to add my name
address
etc to the report header section.

I could add it as a label, but there is presumably a way of displaying the one record of a table called My details.

Can anyone point me in the right direction?

I have not yet got to grips with VBA / SQL programming.

Thanks Allen,

that worked fine after some experimentation.

Mike Abbott.


Mar 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Guy Mahieu | last post by:
All, Is there a simple way to manipulate the details section of a Crystal Report at runtime on a per-record basis? The reason I want to do this is that my database table contains an image url...
3
by: Mike Turco | last post by:
My phone directory project is moving along. Its a series of reports and documents that all get imported into Word, via RTF files or whatever. I need to create a couple of indexes. Is there a way...
1
by: kosecki | last post by:
Hi, I'd like to do something like that: I've a sql database which has a lot of email adresses, I've wonder if I can export thems into Outlook 2003 Address Book because I need to synchronize...
0
by: kammaldeep | last post by:
hi, i m newbie 2 PHP & to b frank ... will alwaz be ... i dont think i will go into much details with PHP as my work doesnot include workin with PHP bt i have a forum .. and i want to make a...
2
by: chutney | last post by:
Dear all, please excuse the fact that this is not an explicit problem I have, but more of a general query. I have an Access database (2003) with a load of contact details in it. Including various...
4
by: Gilles Ganault | last post by:
Hello I'd like to find a basic PHP+MySQL contact manager, so that we can keep a list of our customers, and a contact history (ie. whenever they call us for a problem, it'll be in the file)....
2
rcollins
by: rcollins | last post by:
I have a report that gives me contact info for each client. We run these reports every month, ie, 4/1/2008-4/30/2008. As it is now we get the lients who have had contact for the month. What I would...
19
by: hedges98 | last post by:
Sorry for the mouthful of a title! Basically, I have a form with tabbed controls (Personal/Contact Details, Referral Information, Case Info/Status etc.) and I want to add a tabbed control form...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.