Reply
 
Thread Tools Display Modes
  #1   Report Post  
JethroUK©
 
Posts: n/a
Default Pass Access criteria direct to a Word document

I have std mailmerge letter based on std access query (no criteria just the
fields) so i need to pass the criteria (sql 'Where' statement) dynamically
direct to the document in VB on it opening

Does mail merge doc support sql where statement? - Is this possible?


  #2   Report Post  
KARL DEWEY
 
Posts: n/a
Default Pass Access criteria direct to a Word document

In the query design view grid add a column --
Criteria: [YourCriteriaPrompt]

Copy the criteria from the criteria row of the query so there will be no
errors and paste it after the colon in the field row. The criteria will
then be in the query output and available for use in Word Mailmerge.

"JethroUK©" wrote:

I have std mailmerge letter based on std access query (no criteria just the
fields) so i need to pass the criteria (sql 'Where' statement) dynamically
direct to the document in VB on it opening

Does mail merge doc support sql where statement? - Is this possible?



  #3   Report Post  
JethroUK©
 
Posts: n/a
Default Pass Access criteria direct to a Word document

the merge document has to be based on an access form filter (std SQL Where
statement) - the query criteria is simple for Access:

[forms]![myform]![mycriteria]

yet apparently too complex for MS Word to use as a data source (doesn't even
show up as a possible data source unless i remove the criteria)

hence there's no copy/paste - hence the where statement (filter) has to be
done dynamically (programmatically)



"KARL DEWEY" wrote in message
...
In the query design view grid add a column --
Criteria: [YourCriteriaPrompt]

Copy the criteria from the criteria row of the query so there will be no
errors and paste it after the colon in the field row. The criteria will
then be in the query output and available for use in Word Mailmerge.

"JethroUK©" wrote:

I have std mailmerge letter based on std access query (no criteria just

the
fields) so i need to pass the criteria (sql 'Where' statement)

dynamically
direct to the document in VB on it opening

Does mail merge doc support sql where statement? - Is this possible?





  #4   Report Post  
Doug Robbins - Word MVP
 
Posts: n/a
Default Pass Access criteria direct to a Word document

From the Tools menu, selection Options and then on the General tab, check
the box for "Confirm conversions at open". Then when you attach the
datasource to the maindocument, you will be asked for the connection method
to be used. Try the DDE connection.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"JethroUK©" wrote in message
...
the merge document has to be based on an access form filter (std SQL Where
statement) - the query criteria is simple for Access:

[forms]![myform]![mycriteria]

yet apparently too complex for MS Word to use as a data source (doesn't
even
show up as a possible data source unless i remove the criteria)

hence there's no copy/paste - hence the where statement (filter) has to be
done dynamically (programmatically)



"KARL DEWEY" wrote in message
...
In the query design view grid add a column --
Criteria: [YourCriteriaPrompt]

Copy the criteria from the criteria row of the query so there will be no
errors and paste it after the colon in the field row. The criteria will
then be in the query output and available for use in Word Mailmerge.

"JethroUK©" wrote:

I have std mailmerge letter based on std access query (no criteria just

the
fields) so i need to pass the criteria (sql 'Where' statement)

dynamically
direct to the document in VB on it opening

Does mail merge doc support sql where statement? - Is this possible?







Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
take yet another lesson from wordperfect "reveal codes" wordperfect is superior Microsoft Word Help 5 May 11th 09 07:58 PM
Macros - Keyboard Commands Janet Microsoft Word Help 6 April 11th 05 05:28 AM
creating forms Fluffypink Microsoft Word Help 4 March 9th 05 04:17 PM
Converted document from WordPerfect. New footnotes are not being. C Lowman Microsoft Word Help 1 January 26th 05 10:19 PM
How do I create & merge specific data base & master documents? maggiev New Users 2 January 12th 05 11:30 PM


All times are GMT +1. The time now is 01:03 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"