Open query but not display

J

Junior

sing the following to export a txt file - how can i stop the query from
displaying on the screen?

DoCmd.OpenQuery "qMissItem", acNormal, acReadOnly
DoCmd.TransferText acExportDelim, "", "QLtrMissItem", "C:\Data\Test.txt",
False, ""
 
M

Marshall Barton

Junior said:
sing the following to export a txt file - how can i stop the query from
displaying on the screen?

DoCmd.OpenQuery "qMissItem", acNormal, acReadOnly
DoCmd.TransferText acExportDelim, "", "QLtrMissItem", "C:\Data\Test.txt",
False, ""

Don't open the query.

It's not clear what you want to happen here. Why do you
first open one query, then export a different table or
query?
 
J

Junior

sorry Marshall - i misstyped the code - it is the same qry
Solved the problem using an export specification
 

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

Top