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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Address



 
 
Thread Tools Display Modes
  #1  
Old December 14th, 2008, 04:00 AM posted to microsoft.public.access.gettingstarted
Roger Bell
external usenet poster
 
Posts: 275
Default Address

I have designed a Data Bases which has, specifically, two seperate fields:
Residential Address
Postal Address for PO Boxes as separate from Residential where they exist

What I would like, when printing labels and envelopes, is for the system to
pick up the Postal Address, if it is not null, otherwise, display the
Residential address. Could I use the IIf function, built into the label
format which exists as follows:
=Trim([title for pg] & " " & [lname]) & Chr(13) & Chr(10) & Trim([unit/flat]
& " " & [unit/flat no] & " " & ([street number] & "" & [street prefix] & " "
& [street name]) & Chr(13) & Chr(10) & Trim([suburb] & " " & [state] & " "
& [pcode]))

Thanks for any help
  #2  
Old December 14th, 2008, 08:57 PM posted to microsoft.public.access.gettingstarted
tina
external usenet poster
 
Posts: 1,997
Default Address

do you have a separate table for addresses, since your client (customer,
patient, subscriber, whatever) may have more than one address? if not, you
should. if you do, you might add a field to the addresses table, as

ResidenceOnly (Yes/No data type)

for those addresses which are residence only, not mail/residence, the
ResidenceOnly field will be True. then you can write a query for the Labels
report, linking the client table to the child addresses table, and returning
only those records where ResidenceOnly = False.

hth


"Roger Bell" wrote in message
...
I have designed a Data Bases which has, specifically, two seperate fields:
Residential Address
Postal Address for PO Boxes as separate from Residential where they exist

What I would like, when printing labels and envelopes, is for the system

to
pick up the Postal Address, if it is not null, otherwise, display the
Residential address. Could I use the IIf function, built into the label
format which exists as follows:
=Trim([title for pg] & " " & [lname]) & Chr(13) & Chr(10) &

Trim([unit/flat]
& " " & [unit/flat no] & " " & ([street number] & "" & [street prefix] &

" "
& [street name]) & Chr(13) & Chr(10) & Trim([suburb] & " " & [state] & "

"
& [pcode]))

Thanks for any help



 




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:47 PM.


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