473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

docmd.transfertext don't works!

PEB
1,418 Expert 1GB
Hi all,

Yesterday i've tried this command:

DoCmd.TransferText acExportDelim, "Comma_SEP", "myquery", "D:\Temp\Temp.txt"

And it gave me an Error that can't find "D:\Temp\Temp.txt"

This file exists ant i've supposed that should be replaced by new one!

But the transfer was'nt executed!

I've tried using Macro, but the same pb appears!

This is not urgent, coz i've found a solution! Just like a bug in Access!
Nov 22 '06 #1
14 9866
MMcCarthy
14,534 Expert Mod 8TB
Hey Vladi

If you're D:\ drive is a peripheral drive like CD drive. It may not be able to write to it directly.
Mary

Hi all,

Yesterday i've tried this command:

DoCmd.TransferText acExportDelim, "Comma_SEP", "myquery", "D:\Temp\Temp.txt"

And it gave me an Error that can't find "D:\Temp\Temp.txt"

This file exists ant i've supposed that should be replaced by new one!

But the transfer was'nt executed!

I've tried using Macro, but the same pb appears!

This is not urgent, coz i've found a solution! Just like a bug in Access!
Nov 22 '06 #2
PEB
1,418 Expert 1GB
Hi Mary,
Sure that my HDD is divided to C and D partitions :)
Nov 22 '06 #3
NeoPa
32,556 Expert Mod 16PB
Is the file locked elsewhere.
Perhaps you had it open in another application at the time?
Otherwise I don't know.
Nov 22 '06 #4
MMcCarthy
14,534 Expert Mod 8TB
Hi Mary,
Sure that my HDD is divided to C and D partitions :)
Try changing the filename and see will it create a new file?
Nov 22 '06 #5
PEB
1,418 Expert 1GB
Is the file locked elsewhere.
Perhaps you had it open in another application at the time?
Otherwise I don't know.
Unfortunately no! It isn't locked... And sometimes it isn't created yet! :(
Nov 25 '06 #6
PEB
1,418 Expert 1GB
Try changing the filename and see will it create a new file?
This gives the same pb!

I know that this kind of functions are null... I've right to develop my own way to export csv!

:)

Don't worry more about it... This is no more as problem for me... I've solved it! But wanted to note it like a bug in Access!

Thanks you both!

Vlady
Nov 25 '06 #7
Hi,
Could you tell us how you solved it please?

I have a similar problem. Access db converted from 97 to 2003.
Now macro falls over with 3027 error on TransferText command.
However, can manually export with no problem!

I think it is a bug too....
Dec 11 '06 #8
NeoPa
32,556 Expert Mod 16PB
To check if something is an Access bug visit (Welcome to Allen Browne's tips for Microsoft Access).
The part of the page you want is sub-titled "Flaws in Access".
Dec 11 '06 #9
OK, thanks, I've looked and can't see it there so I guess it is not a recognized bug except by me and Vlady....
Dec 11 '06 #10
NeoPa
32,556 Expert Mod 16PB
OK, thanks, I've looked and can't see it there so I guess it is not a recognized bug except by me and Vlady....
Sometimes, things can be confusing and don't work the way you expect them to. This doesn't necessarily mean they're a bug. That site can give more information about gotchas as well as just the bugs.
Dec 11 '06 #11
Thanks, I've bookmarked that page for future reference.

Further investigation elsewhere has led me to the solution for my problem (though maybe not Valdy's problem). I was using a .FIL file extension (legacy reasons) whereas from 2000 onwards it expects "valid" file extensions. Changed it to .TXT and it worked a treat!
Dec 11 '06 #12
NeoPa
32,556 Expert Mod 16PB
Yeah, that's a bit naff I know.
I normally use the Name statement afterwards to rename it to what I need (With On Error etc).
Dec 11 '06 #13
SOLVED: I had the same issue. In my case the Export Spec was invalid. I'd created it when exporting a table but then used it on a query (slightly different fields). As soon as I recreate the export spec it work as expected.
Sep 28 '07 #14
pod
298 100+
instead of a file, create the specification in the import wizard and save it as a name which you will then call from the specificationame in your docmd.transfertext call
Nov 9 '07 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Teresa | last post by:
I'm trying to import a tab delimited text file. The text file does not have column heading. I can give it column heading if needed. How do I change the defult comma delimited to tab? If I...
3
by: holdemfoldem | last post by:
Hi. I'm new to this board and have a few questions about using the method referred to in the topic of this message. I have manually transferred over 1/2 million records from a text file into my...
0
by: Chris | last post by:
Hi, I am using the command below for exporting data to text file. One of the query columns has SINGLE number type with decimal ponts as auto. DoCmd.TransferText acExportDelim,...
1
by: Ryan | last post by:
Hello. I was hoping that someone may be able to assist with an issue that I am experiencing. I have created an Access DB which imports an Excel File with a particular layout and field naming. ...
1
by: veaux | last post by:
I'm sure this has been answered, and I've looked but can't quite find what I'm looking for. I have Path = "I:/voucher.txt" DoCmd.TransferText acExportFixed, "voucher_fixed",...
3
by: ProteusGak | last post by:
Hi there, can anyone tell me how to allow the user to enter in a path on there harddrive for a transfertext item? It works just fine if I set it programmatically, but I really need them to do this,...
4
by: jessek | last post by:
I’m trying to use DoCmd.TransferText, (I use it successfully with a .txt export every day) to export a table into a CSV file. Right now every time I try – it says: Run-time error 3011 The MS...
1
by: amitk | last post by:
Hello, I'm using Access 2002-2003. My application exports an Access table into a text file and then appends the text file with several othet files to generate a final file XXXX.ftm . ...
0
by: Cuaracao | last post by:
This is my code: Code1: 'DoCmd.OpenTable "tblImport" 'DoCmd.TransferDatabase acExport, "dBASE IV", strOutputDir,acTable,"sel_TblImport", strDbfName & ".dbf", False ' DoCmd.Close acTable,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.