Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

how to conditionally show a picture in a document in function of a certain field when merging with a database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Philip Leduc - 04 Apr 2006 02:19 GMT
Hi I know how to conditionally show text (without using VBA) and I know
VBA/VB6 from using it in MS Access , is there anybody that knows how to
conditionally show a picture in a document in function of a certain field
when merging with a database query with/or without using VBA? Thanks for
your help!
Jezebel - 04 Apr 2006 03:24 GMT
There's no direct way to do this other than write a macro that deletes or
obscures the picture according to the condition.

> Hi I know how to conditionally show text (without using VBA) and I know
> VBA/VB6 from using it in MS Access , is there anybody that knows how to
> conditionally show a picture in a document in function of a certain field
> when merging with a database query with/or without using VBA? Thanks for
> your help!
Jean-Guy Marcil - 04 Apr 2006 14:08 GMT
Philip Leduc was telling us:
Philip Leduc nous racontait que :

> Hi I know how to conditionally show text (without using VBA) and I
> know VBA/VB6 from using it in MS Access , is there anybody that knows
> how to conditionally show a picture in a document in function of a
> certain field when merging with a database query with/or without
> using VBA? Thanks for your help!

You could try with an IF field:

{IF {MERGEFIELD name}= "Some value" "(Inline picture)" "Else nothing"}

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

Philip Leduc - 04 Apr 2006 16:22 GMT
Making the picture "inline" did the job, thanks. I needed that extra
knowledge from word, thanks!
> Philip Leduc was telling us:
> Philip Leduc nous racontait que :
[quoted text clipped - 8 lines]
>
> {IF {MERGEFIELD name}= "Some value" "(Inline picture)" "Else nothing"}
 
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.