Re: Mail Merge and Project
- From: "Peter Jamieson" <pjj@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Apr 2005 18:42:11 +0100
My memory of project server is pretty vague, but if it uses a SQL
Server/MSDE database it may be possible to create a View in the database
that does what you need. If so, I don't know whether there is a way to
specify a person's username in the view to give you the results you need,
but /a/ way of doing that within a SQL Server environment would be to create
a view for each user that did the right thing.
Otherwise, Word does not provide a way to specify a GROUP BY clause in its
user interface, but there are a number of ways that the user interface might
be bypassed, e.g.
a. you may be able to create a suitable VIEW in the server and use that as
the data source (as above)
b. if your users happen to have Access installed, it may be possible to
link to your Project Server tables/queries from access, then create the
Access query/queries you need and use those as the data source.
c. you can use Word VBA's OpenDataSource method to connect to a data
source, issuing a short SQL query directly (either around 256 or 512
characters)
d. if you can connect to your data source using ODBC, you can set up an
ODBC DSN and use Microsoft Query to define a suitable query to get your
data.
However, all the above assumes that your merge is based on a table of
records with identical format, i.e. that the result of the SQL SELECT with a
GROUP BY clause is returning a "flat table" of rows. If what you actually
want to do is produce a more hierarchical type of output, where you use
GROUP BY to specify some heading info and a number of "child records", Word
is not designed to do that. Let us know.
Peter Jamieson
"debraholloway" <debraholloway@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7366443F-014A-4C46-891A-618A149B44D8@xxxxxxxxxxxxxxxx
> Help. I want to email using a mail merge. The data is in microsoft
> project
> server. Each person should only get the rows of data that applies to
> them.
> If I were creating the report in Access I would use a "group by"
>
> Can you do a group by with a mail merge? I am open to other suggestions.
> --
> Debra H.
.
- Follow-Ups:
- Re: Mail Merge and Project
- From: debraholloway
- Re: Mail Merge and Project
- References:
- Mail Merge and Project
- From: debraholloway
- Mail Merge and Project
- Prev by Date: Excel Range Name to apply in word when merging
- Next by Date: Re: Excel Range Name to apply in word when merging
- Previous by thread: Mail Merge and Project
- Next by thread: Re: Mail Merge and Project
- Index(es):
Relevant Pages
|