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

Problem Using TransferText

Sue
Using WindowsXP and AccessXP in 2000 Mode

When I run the following code, I get error 3027
"Cannot Update. Database or object is read only."

StrFolder = "C:\Comic Box\WebStore Interface Database\UpLoadChangeFiles\"
StrFile = "NewStoreItem" & Format(Now(), "yymmddhhnn") & ".txt"
DoCmd.TransferText acExportDelim, "NewStoreItem Export Specification",
"QryPFrmAddNewItemToWebstore", StrFolder & StrFile, False

However, when I go to File Export and export QryPFrmAddNewItemToWebstore to
C:\Comic Box\WebStore Interface
Database\UpLoadChangeFiles\NewStoreItem03092205172 0.txt, I don't encounter any
problem and the text file is created in the path.

Does anyone have an idea why manually it works and transfertext does not?

Thanks for all help!!

Sue
Nov 12 '05 #1
1 3944
"Sue" <sm********@earthlink.net> wrote in message news:<gL*******************@newsread1.news.atl.ear thlink.net>...
Using WindowsXP and AccessXP in 2000 Mode

When I run the following code, I get error 3027
"Cannot Update. Database or object is read only."

StrFolder = "C:\Comic Box\WebStore Interface Database\UpLoadChangeFiles\"
StrFile = "NewStoreItem" & Format(Now(), "yymmddhhnn") & ".txt"
DoCmd.TransferText acExportDelim, "NewStoreItem Export Specification",
"QryPFrmAddNewItemToWebstore", StrFolder & StrFile, False

However, when I go to File Export and export QryPFrmAddNewItemToWebstore to
C:\Comic Box\WebStore Interface
Database\UpLoadChangeFiles\NewStoreItem03092205172 0.txt, I don't encounter any
problem and the text file is created in the path.

Does anyone have an idea why manually it works and transfertext does not?


Not yet, but when you manually export, are you using the export
specification "NewStoreItem Export Specification" that you were
attempting to use with TransferText?

Bruce
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Squirrel | last post by:
Hi everyone, I've created a mail merge Word doc. (using Office XP) , the data source is an Access query. Functionality I'm attempting to set up is: User sets a boolean field to true for...
3
by: Oliver Gabriel | last post by:
Hi, i want to export a table for later import, using vba. That´s my code: export: filename = "C:\HVOtabelle.txt"
8
by: Arno R | last post by:
Hi all, All of a sudden I have problems importing and exporting textfiles with A97. Code was working allright for years and years, but not today... Since I have this app in two versions I...
3
by: Henrootje | last post by:
Hello Access-guru's, wizards and helpful people! I am trying to import several textfiles into several tables. Now I thought the following code up which works swell: Dim Importspecification,...
1
by: hedgracer | last post by:
I have a strange problem with a docmd.transfertext statement. I have set up an import specification to transfer in a .txt file by fixed width. When I do the import using the specification the file...
5
by: JHNielson | last post by:
I have a somewhat simple question, but have been baffled by it for a while, and now I'm on a tight deadline - have to get it done within 24 hours. I am trying to export a set of files to my hard...
2
by: dogman_2000 | last post by:
Hi All I am using the docmd.transfertext to export my query as a .csv file. I am using an export spec which is seperated by a pipe. The problem I have is that I added an extra column onto the...
5
by: Dave | last post by:
Hello, I have a possible problem exporting a text field that happens to contain dates (but is not a date field) when using TransferText in MS Access 2000. I am exporting a query to a text...
0
by: stuart | last post by:
I seem to have a problem with the use of the TransferText function. In 2 applications that I have, every few months, it seems to not export a few records from a table. In another application,...
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: 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
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.