Open query but not display

  • Thread starter Thread starter Junior
  • Start date Start date
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, ""
 
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?
 
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

Similar Threads

Shell Error 10
Cannot Expand Named Range 2
Form Not Visible 2
2 buttons change to 1 button for one go 6
ProgressBar 3
TransferText 1
Export to text 1
Export to text 2

Back
Top