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

Home Posts Topics Members FAQ

Transfertxt problem; difference A97 and A2k

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 tested the behaviour in A2k also.
To my surprise the *same* code with the *same* files works with A2k and *not* with A97
FYI: App is split FE-BE and the BE is in Access97 format, so the same BE is used with these versions.
So I have FE97-BE97 and FE2k2-BE97 here to test with.

Export:
the code DoCmd.TransferText acExportDelim, , "TabVoorraad", "C:\svb\export\voorraad.txt", True
works in Access 2000 and does not work in Access 97 anymore.
Again: I tested this with the very SAME TabVoorraad (A97 format)
Error A97 generates: "3441 Text file specification field separator matches decimal separator or text delimiter"

Import:
the code DoCmd.TransferText acImportDelim, , "TempTabImportVoorraad", "C:\svb\import\voorraad.txt", True
works in Access 2000 and does not work in Access 97 anymore.
Again: I tested this with the very *same* file voorraad.txt
Error A97 generates: "3274 External table not in expected format"

Same PC - same Files. The error messages are useless here

I am stumped here... I Googled around but to no avail yet.
Any ideas??

Arno R
Apr 18 '06 #1
8 7837
Hi Arno,

some questions:

-what characters are used in voorraad.txt as decimal separator and text
delimiter, respectively?
Are they "." and "," ?

- Does the file contain headers on the first row?

- Does the file contain intermixed data?

-tom

Arno R ha scritto:
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 tested the behaviour in A2k also.
To my surprise the *same* code with the *same* files works with A2k and *not* with A97
FYI: App is split FE-BE and the BE is in Access97 format, so the same BE is used with these versions.
So I have FE97-BE97 and FE2k2-BE97 here to test with.

Export:
the code DoCmd.TransferText acExportDelim, , "TabVoorraad", "C:\svb\export\voorraad.txt", True
works in Access 2000 and does not work in Access 97 anymore.
Again: I tested this with the very SAME TabVoorraad (A97 format)
Error A97 generates: "3441 Text file specification field separator matches decimal separator or text delimiter"

Import:
the code DoCmd.TransferText acImportDelim, , "TempTabImportVoorraad", "C:\svb\import\voorraad.txt", True
works in Access 2000 and does not work in Access 97 anymore.
Again: I tested this with the very *same* file voorraad.txt
Error A97 generates: "3274 External table not in expected format"

Same PC - same Files. The error messages are useless here

I am stumped here... I Googled around but to no avail yet.
Any ideas??

Arno R


Apr 18 '06 #2
Hi Tom,
Answered inline

<to**************@uniroma1.it> schreef in bericht news:11**********************@i39g2000cwa.googlegr oups.com...
Hi Arno,

some questions:

-what characters are used in voorraad.txt as decimal separator and text
delimiter, respectively?
Are they "." and "," ?

No decimal separaters in the file, delimiter is ;
Part of the file goes here... (watch for line wrap)

"Winkel";"Categorie";"Artikelnummer";"0";"35";"35+ ";"36";"36+";"37";"37+";"38";"38+";"39";"39+";"40" ;"40+";"41";"41+";"42";"42+";"43";"43+";"44";"44+" ;"45";"45+";"46";"46+"
"B";2;4201;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 ;0;0;0;0;0
"B";2;4205;0;0;0;0;0;0;0;0;0;0;0;0;0;1;1;0;0;2;1;2 ;-1;0;0;0;0
"B";2;4501;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;1;1;1;1;1 ;0;1;0;0;0

- Does the file contain headers on the first row? Yep
- Does the file contain intermixed data? No, same (most numeric) data all over

Thanks
Arno R

Arno R ha scritto:
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 tested the behaviour in A2k also.
To my surprise the *same* code with the *same* files works with A2k and *not* with A97
FYI: App is split FE-BE and the BE is in Access97 format, so the same BE is used with these versions.
So I have FE97-BE97 and FE2k2-BE97 here to test with.

Export:
the code DoCmd.TransferText acExportDelim, , "TabVoorraad", "C:\svb\export\voorraad.txt", True
works in Access 2000 and does not work in Access 97 anymore.
Again: I tested this with the very SAME TabVoorraad (A97 format)
Error A97 generates: "3441 Text file specification field separator matches decimal separator or text delimiter"

Import:
the code DoCmd.TransferText acImportDelim, , "TempTabImportVoorraad", "C:\svb\import\voorraad.txt", True
works in Access 2000 and does not work in Access 97 anymore.
Again: I tested this with the very *same* file voorraad.txt
Error A97 generates: "3274 External table not in expected format"

Same PC - same Files. The error messages are useless here

I am stumped here... I Googled around but to no avail yet.
Any ideas??

Arno R

Apr 18 '06 #3
For problem 1.

Try placing this ini file:

http://cam70.sta.uniroma1.it/Technic...rno/schema.ini

in the same directory as voorraad.txt, and run the import. Let's see
what happens...

-tom

Apr 18 '06 #4

Hi Tom,

I don't understand how a file like schema.ini would make any difference
but I am willing to try.

So I copied the schema.ini to the same directory as the file
voorraad.txt
It makes no difference (as I expected...)
3274 External table isn't in the expected format

Thanks
Arno R
(answering this one from my google-account)

to**************@uniroma1.it schreef:
For problem 1.

Try placing this ini file:

http://cam70.sta.uniroma1.it/Technic...rno/schema.ini

in the same directory as voorraad.txt, and run the import. Let's see
what happens...

-tom


Apr 19 '06 #5
hi Arno,

Sorry, it was just an attempt. In similar cases it has worked. It
depends on the provider which does the job. From the error message you
reported, it seemed likely to me the import was being done through the
Microsoft TEXT provider (odbc or oledb), which does read the local
"schema.ini". If this is the case, it may be worth to play with the
schema.ini to establish if: 1.It is read, 2.if it is, what are the
right settings.

this might help:
http://windowssdk.msdn.microsoft.com...a_ini_file.asp
http://origma.ru/support/default.asp...omTextFile.htm
http://www.codeproject.com/cs/databa...lCSVReader.asp

Another way to do a similar thing is to run Regedit and manually
changes the values in:
HKEY_LOCALMACHINE/SOFTWARE/Microsoft/Jet/4.0/Engines/Text

If the import is done by others methods, the above, clearly, will not
be of any help. But I guess, it would be useful to know details on how
import/export is done.

-tom

PS
when you find the solution, let me know, I am curious about it :)

[further, if you are willing to send the code lines where the
connection/import/export is done
I am willing to make some attempts on my pc]

Apr 19 '06 #6
Another idea.
I noticed that you actually posted:

DoCmd.TransferText acExportDelim, , "TabVoorraad",
"C:\svb\export\voorraad.txt", True
DoCmd.TransferText acImportDelim, , "TempTabImportVoorraad",
"C:\svb\import\voorraad.txt", True

You are not specifying an import specification at all in your code.
I've added Import Specification Name in the code to show you where it
goes:

DoCmd.TransferText acImportDelim, "Import Specification Name",
"TabVoorraad",
"C:\svb\export\voorraad.txt", True

"Import (oe Export) Specification Name" represent the specification
that you
save through the Import/E Wizard.

If not specified ACCESS uses "default" settings for importing text
(which probably overrides the "schema.ini"), which may cause those
errors. Try Writing the correct specification, and your problems should
go away (I hope).

-Tom

Arno R ha scritto:
Hi Tom,

I don't understand how a file like schema.ini would make any difference
but I am willing to try.

So I copied the schema.ini to the same directory as the file
voorraad.txt
It makes no difference (as I expected...)
3274 External table isn't in the expected format

Thanks
Arno R
(answering this one from my google-account)

to**************@uniroma1.it schreef:
For problem 1.

Try placing this ini file:

http://cam70.sta.uniroma1.it/Technic...rno/schema.ini

in the same directory as voorraad.txt, and run the import. Let's see
what happens...

-tom


Apr 19 '06 #7

Hi Tom

I am having these problems with A97 ...
I understand that using an importspec could be of use here. WIll try
this evening when I am back home.
Should have thought of this myself!
Still stumped why this worked for years and suddenly dies now.
Also stumped why it works in A2k (same codeline without importspec).

Thanks, I will let you know if importspec works

Arno R

Apr 19 '06 #8
Hi Tom,

As I expected indeed: with an import specification the import works again,
Maybe I should have used an importspec from the beginning... (this is an app I 'inherited'...)
Still stumped why this import worked for years and suddenly stops working... but glad the issue is solved
(Access keeps surprizing me sometimes)

Thanks for your help

Arno R
"Arno R" <ar*****@tiscali.nl> schreef in bericht news:11**********************@i40g2000cwc.googlegr oups.com...

Hi Tom

I am having these problems with A97 ...
I understand that using an importspec could be of use here. WIll try
this evening when I am back home.
Should have thought of this myself!
Still stumped why this worked for years and suddenly dies now.
Also stumped why it works in A2k (same codeline without importspec).

Thanks, I will let you know if importspec works

Arno R

Apr 19 '06 #9

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

Similar topics

4
by: Eric Boutin | last post by:
Hi all ! I'm currently writing a function that evaluate if there is a diffence beetween 2 streams (istringstream and ifstream). The problem is, it doesn't work. It *always* finds a difference...
17
by: Jon Slaughter | last post by:
I'm having a little trouble understanding what the slicing problem is. In B.S.'s C++ PL3rdEd he says "Becayse the Employee copy functions do not know anything about Managers, only the Employee...
8
by: Andrew McNab | last post by:
Hi folks, I have a problem with an MS Access SQL query which is being used in an Access Report, and am wondering if anyone can help. Basically, my query (shown below) gets some records from a...
1
by: Andrew McNab | last post by:
Hi folks, I have a problem with an MS Access SQL query which is being used in an Access Report, and am wondering if anyone can help. Basically, my query (shown below) gets some records from a...
4
by: Jeffrey Barrett | last post by:
Can someone tell me why I'm having this problem: When I select drink 5 and deposit too little money, there's a problem with the 'difference' variable. Try to deposit $.80 instead of the full $.85...
15
by: Ken Allen | last post by:
I have been developing a suite of assemblies over the past couple of weeks, and this afternoon somethign started misbehaving. If I do not run the IDE and compiler the code from the command line,...
42
by: Greg | last post by:
Hi, I've designed a bookmark in Ajax / PHP that I will put soon on sourceforge.net. But I've got an very tricky bug. I try it on some computers with Internet Explorer/Windows, Firefox...
9
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
15
by: student4lifer | last post by:
Hello, I have 2 time fields dynamically generated in format "m/d/y H:m". Could someone show me a good function to calculate the time interval difference in minutes? I played with strtotime() but...
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...
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
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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 ...

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.