Solved

Access 2003: Can't export to a *.dat file

Posted on 2004-10-19
5
575 Views
Last Modified: 2012-06-21
I have a split database using Access 2003.  I've written code to export query results to a *.dat file.  See below:
 
DoCmd.TransferText acExportDelim, "Tabquick Labels", stDocName, "\\pd0ns-wdc002\projdoc$\nsgs.dat"  

When this runs I get a MS Access error "Cannot Update.  Database or Object is read only"

I've verified that  I have full rights to the database and all the objects inculding MSysIMEXColumns and MSysIMEXSpecs.

If I try to export this as any other format, i.e. *.txt, it works fine.

What do I need to do to export to a *.dat file?

Some history on this database:  This was a AC97 database with the tables and other objects all in one mdb.  This piece of code does work under these conditions so I'm not sure if it's because the database is split or if it is because it has been converted to 2003.

Thanks
N.
0
Comment
Question by:ncrew
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 51

Expert Comment

by:Steve Bink
ID: 12351839
Export to a text file, then rename it after the fact to .dat.  Is there a reason you need to use .dat over .txt?
0
 
LVL 16

Expert Comment

by:Nestorio
ID: 12351848
I think .dat is a special type of file. Try exporting to a .txt extension file and then renaming it to .dat.
0
 
LVL 51

Accepted Solution

by:
Steve Bink earned 500 total points
ID: 12351853
Here's the relevent link from Microsoft.  This is for Office 2000, but it likely applies to 2003 as well:

http://support.microsoft.com/default.aspx?scid=kb;en-us;304206
0
 

Author Comment

by:ncrew
ID: 12352151
Routinet,

You're the greatest!  Because I have 2003 I had to go a little deeper into the registry than the paper listed, but I found it and this works great!

Thanks!
N.
0
 
LVL 51

Expert Comment

by:Steve Bink
ID: 12352256
Anytime.  :)  Good luck with the rest of your project!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question