problem with file name....

erin_0502

Registered User.
Local time
Tomorrow, 03:44
Joined
Jul 25, 2007
Messages
20
hie friends......................

why when i use this coding

DoCmd.TransferText acExportDelim, , td.Name, sExportLocation & td.Name & ".txt", True

the file name look like this td.Name not exactly in text file (td.Name.txt)

can anibody help me....
 
i think so but when i see the file it not exactly....
 
Try this:
Code:
     Dim strFilename as string

     strFilename = sExportLocation & td.Name & ".txt"
     debug.print strfilename
     DoCmd.TransferText acExportDelim, , td.Name, strFilename, True
Check your immediate window.
If td.Name is valid, perhaps "td.Name" is the value of the variable td.Name?

HTH
 
Do you have Windows set to display extensions for known file types on that folder?
 
Try this:
Code:
     Dim strFilename as string

     strFilename = sExportLocation & td.Name & ".txt"
     debug.print strfilename
     DoCmd.TransferText acExportDelim, , td.Name, strFilename, True
Check your immediate window.
If td.Name is valid, perhaps "td.Name" is the value of the variable td.Name?

HTH

I'm still cannot get exactly file name with .txt file when i try using this code
 
thank for every one....
my problem ok now....
hehehe....
thank a lot....
 

Users who are viewing this thread

Back
Top Bottom