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 / Mailmerge and Fax / October 2003

Tip: Looking for answers? Try searching our database.

Insert databases - empty query warning

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sandy - 24 Oct 2003 17:19 GMT
I am using {database} to insert several sections of
information into a report.  However some of these sections
may be empty and in these cases Word gives a warning "Word
could not insert the results because your query generated
an empty result".

Is there some way of suppressing this warning so that the
user does not have to sit there pressing enter or clicking
OK every so often?
Peter Jamieson - 25 Oct 2003 08:46 GMT
You can certainly try the following, but I can't guarantee it will eliminate
the messages.

Esentially, use

{ IF { DATABASE field with a SELECT count query } = 0
""
"{ DATABASE field you really want }" }

e.g. if your query is SELECT * FROM xyz, then try using "SELECT count(*)
FROM xyz" in the first DATABASE field. Ensure that the field does not have
the \h switch. In that case, a scalar value is returned and Word does not
try to turn it into a table.

--
Peter Jamieson
MS Word MVP

> I am using {database} to insert several sections of
> information into a report.  However some of these sections
[quoted text clipped - 5 lines]
> user does not have to sit there pressing enter or clicking
> OK every so often?
 
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.