file name

  • Thread starter Thread starter Robert Couchman
  • Start date Start date
R

Robert Couchman

hello all,

please can i have some help??

i have a word document that is used to mailmerge
information from my spredsheet, all the letters produced
use the same sheet but they have querystrings.

can anyone please tell me how i can get rid of the
following as it will be put in the same folder (and both
files will be moved onto local computers from a network)

activedocument.mailmerge.datasource.querystring = "SELECT
* FROM C:\documents and settings\87956308\desktop\AO
Program.xls WHERE ((passfail_application = 'Fail'))" & ""

sorry for the bother..

Thank you,

Robert Couchman
([email protected])
 
Robert

Can you use

....querystring = "SELECT * FROM " & ActiveDocument.Path & "\AOProgram.xls
WHERE ((passfail_application = 'Fail'))"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help with location? 2
Just a big "Thank you" to Tom and Bob 1
IF... change colour 4
Thinking outside the box 2
Back to the brick wall!! 1
Anyone can help 5
printing problem 1
Textbox problem 11

Back
Top