473,474 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

TrasferText Error 3310

Hello,

The following code works fine for the first 100 or so iterations, then
gives an Error 3310 (This property isn't supported for external data
sources or for databases created in a previous version.). I am using
Access 2000. Any help would be GREATLY appreciated. Thank you!

DoCmd.TransferText acExportDelim, , "qryData", "C:\inmat.txt"

Nov 19 '06 #1
2 3087
Does DoCmd.TransferSpreadsheet work, or does it still halt after 100
records?

Nov 20 '06 #2
Hi maxhugen,

Thank you for your reply. I actually changed the approach alltogether
and am now looping through my recordset, creating an output string of
all of the values for each field for each record, then writing the
output string to a text file using the Print command. Not only does
this approach avoid the '100 iteration' pitfall, but each iteration is
also faster! I've included the code below in case you (or anyone else)
is interestd.

Ben.

Public Sub mcrCreateTextFile(strObject As String, strFileName As
String)

Dim rs As DAO.Recordset
Dim strSQL As String
Dim intFile As Integer
Dim strOutput As String
Dim qdfFieldNames As DAO.QueryDef
Dim fld As DAO.Field

strSQL = "SELECT * FROM " & strObject & ";"
intFile = FreeFile()

Set rs = CurrentDb.OpenRecordset(strSQL)
Open strFileName For Output As #intFile
Set qdfFieldNames = CurrentDb.QueryDefs(strObject)

With rs
.MoveFirst
Do While Not .EOF
For Each fld In qdfFieldNames.Fields
strOutput = strOutput & rs.Fields(fld.Name) & ","
Next
strOutput = Left(strOutput, Len(strOutput) - 1) &
vbCrLf
.MoveNext
Loop
.Close
End With
Set rs = Nothing

strOutput = Left(strOutput, Len(strOutput) - 2)
Print #intFile, strOutput
Close #intFile
End Sub

Nov 20 '06 #3

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

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
2
by: Gregory | last post by:
Hi, One of the disadvantages of using error handling with error codes instead of exception handling is that error codes retuned from a function can be forgotten to check thus leading to...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
3
by: Manuel | last post by:
I'm trying to compile glut 3.7.6 (dowbloaded from official site)using devc++. So I've imported the glut32.dsp into devc++, included manually some headers, and start to compile. It return a very...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
0
by: mchuc7719 | last post by:
Hello, I have a Vb.Net 2005 ClassLibrary, when I try to compile using MSBee, only get errors. Before I to run the command line, I open in notepad the .vbproj and I was add the next line: ...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.