Export to text

C

ChoonBoy

I am trying to export a text file but without success. The objective is to
use the sql statement below instead of using a save query to do the text
transfer. Any help appreciated and thanks in advance.

Dim strsql as string

Strsql =â€SELECT qryCountItmUsers.[Item No], Count(qryCountItmUsers.Cust) AS
CountOfCust, qryCountItmUsers.[Sman Code] FROM qryCountItmUsers GROUP BY
qryCountItmUsers.[Item No], qryCountItmUsers.[Sman Code];â€


DoCmd.TransferText acExportDelim, "", " Strsql ", "c:\RMDB\TblOrders3a.txt",
False, ""
 
C

ChoonBoy

Sorry for duplicate entries.

The message that appear after my posting indicated that there was an error.

Regards
 

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

Export to text 2
Excel Export Filtered Form Data To Excel 0
Timeout issue 1
VBA code issue...Would love expert help. 5
Shell Error 10
export to text file problems 2
Error 2465; Can't Find Field 5
Export form data to text file 7

Top