473,394 Members | 1,916 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,394 software developers and data experts.

Problem with exporting text files to system folder in Access 2010

AR Ratheesh
Hi,

I have Access 2010 and When i'm trying to Export Text files to System folder ("C:\Windows\abc.asc"), in Windows 7 ultimate, couldn't export.

But Previously i successfully exported to "C:\windows" in windows xp.But Windows 7 blocks the exporting. Export to other folders is easy and working fine.


My Export specification name is wintrl and table is AccountTrl.

Expand|Select|Wrap|Line Numbers
  1. DoCmd.TransferText acExportDelim, "wintrl", "AccountTrl", "C:\windows\abc.asc", False    'This code makes permission error message
  2. DoCmd.TransferText acExportDelim, "wintrl", "AccountTrl", "C:\Users\Alon Rajan Ratheesh\Desktop\abc.asc", False  ' but here all working fine
How to Export to "c:\windows\" without permission problem?

Any suggestions are highly appreciated.

AR Ratheesh
Sep 17 '11 #1
3 3172
Mihail
759 512MB
I don't know Windows 7 but I think that is a Windows configuration that allow you (or not) to write in the system folder.
Right click the system folder and see the Properties. Maybe you find an answer.

Good luck !
Sep 18 '11 #2
Welcome to Windows 7. You'll need to be signed on to an Admin user windows account to write to the Windows system folder. I'd advise against it. Instead, write to a folder that you're allowed access to. Create a "well behaved" application, and write to "%programdata%/MyCompanyName/MyApplicationName" or "%appdata%/MyCompanyName/MyApplicationName".
Sep 18 '11 #3
NeoPa
32,556 Expert Mod 16PB
I'm definitely with pdebaets on this one. Very good advice.
Sep 26 '11 #4

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

Similar topics

2
by: Debbie CD UK | last post by:
I have a large amount of log files from an electronic contro tester that I need to import in to an Access database Unfortunately, they are not comma delimited or fixed with but different fields...
0
by: Oci-One Kanubi | last post by:
Everything works fine in Access, but when I double-click on the resultant Excel files the first one opens correctly, but subsequent ones, and any other Excel files I try to open, fail to display at...
3
by: JMCN | last post by:
i had some problems trying to alter this code in order to import different text files into the access 97 program. it works properly however the users will be selecting different types of text...
0
by: Mishu | last post by:
I have a document log as Access 2000 database. Each record has a corresponding pdf and txt file stored in the same folder as the database. There is a hyperlink field that points to the...
6
by: J. Shrimp, Jr. | last post by:
Following code exports tables as text files: For Each tdf In db.TableDefs StrTblName = tdf.Name Me.txtProgName = StrTblName Me.txtProgName.Requery tblAtt = tdf.Attributes moddate =...
6
by: MLH | last post by:
I was able to do this from Access 2.0. It had to be set up, of course, but it could be done. I'm unsure as to why Access 97 says "Can't find file"??? ...
6
by: Yi Xing | last post by:
Hi, I need to read specific lines of huge text files. Each time, I know exactly which line(s) I want to read. readlines() or readline() in a loop is just too slow. Since different lines have...
4
by: chimambo | last post by:
I have 2 problems: 1. I want to import a single text file into an access table using a Macro. I am however getting an error that I need to put a specification name argument. What does this mean?...
0
by: coconet | last post by:
I have an app.config file in my Visual Studio 2008 (with TFS integration) Test Project. If I set a break point in a test method, I can see that the app.config has been read. However, the app.config...
3
by: Sean Tech | last post by:
Hello Everyone, I have two questions I hope someone can help me with. I currently have an access 2007 database with 1 table that hosts most of the main data. What I am looking for is to make a...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.