Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Field promotion in a Report.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joergen Bondesen - 18 Jan 2008 22:13 GMT
Hi NG.

I  have a Table - Quiery an a Report.
The Reports contain fields:

First_Lastname
Adr1
Adr2
ZipCity

If this was mailmerge in Word and Adr2 field was empty I would have this
information in the letter:

First_Lastname
Adr1
ZipCity

Is it possible to do so in the Report?

Signature

Best Regards from
Joergen Bondesen

fredg - 18 Jan 2008 22:45 GMT
> Hi NG.
>
[quoted text clipped - 14 lines]
>
> Is it possible to do so in the Report?

You could set the [Adr2] control's CanShink property to Yes.
If no other control is on the same line, the ZipCity will move up.
or...
What do you wish to do if Adr2 is not empty?  
Show both addresses?
Use an Unbound text control instead of the 2 bound text controls.
Set it's control source to:
=IIf(IsNull([Adr2]),[Adr1],[Adr1] & chr(13) & Chr(10) & [Adr2])

or...
Show Adr2 only if Adr1 is empty?
= IIf(IsNull([Adr1]),[Adr2],[Adr1])

Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Joergen Bondesen - 19 Jan 2008 09:46 GMT
Hi  Fred

Thanks.

The magic word I was looking for was:  CanShink

Signature

Best Regards from
Joergen Bondesen

>> Hi NG.
>>
[quoted text clipped - 27 lines]
> Show Adr2 only if Adr1 is empty?
> = IIf(IsNull([Adr1]),[Adr2],[Adr1])
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.