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.

is GROUP a reserved word ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Tissington - 24 Oct 2003 21:11 GMT
I have an SQL query and one of the columns is called 'GROUP'

I have a mail merge that runs against the query and everything's works
accept for the group field.

In Word MailMerge is GROUP as reserved word ?

Thanks.

Signature

Michael Tissington
http://www.tabtag.com
http://www.oaklodge.com

Peter Jamieson - 25 Oct 2003 08:39 GMT
If your query works in the database in which it is defined then typically
Word would just do SELECT * FROM queryname and you should be OK. (although I
can't tell without trying it, so it would help to know
a. which version of Word
b. what is the data source (looks as if you mean Access or SQL Server)
c. how are you connecting? (DDE, ODBC, OLEDB) ?
)

However, if you are filtering or sorting, Word will have to modify the
SELECT, and that might create some invalid SQL depending on the syntax Word
uses. It might be worth using VBA to look at the
ActiveDocument.MailMerge.DataSource.QueryString

'Group' is certainly used in SQL for the GROUP BY clause but I don't think
it is reserved in the sense that you can't use it as a name for columns etc.

--
Peter Jamieson
MS Word MVP

> I have an SQL query and one of the columns is called 'GROUP'
>
[quoted text clipped - 9 lines]
> http://www.tabtag.com
> http://www.oaklodge.com
 
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.