Access 97 import of *.dat files

D

Devra Komendanchik

Can not import *.dat file extensions through Access 97.
It does not interrupt the carriage return character and
data is in one long stream. Excel 97 does interpret the
*.dat files correctly, but I would like to automate the
import process and not have to go through Excel to convert
and then import to Access 97. Even if I change the
extension to *.txt Access 97 still does not interpret it
correctly. Does anyone have the answer?

Thank you,
Devra
 
C

Carol

what kind of file is a dat file?
i don't have the capability to imporot dat files into access
 
J

John Nurick

Hi Carol,

".dat" doesn't refer to any one format or family of formats, unlike
extensions such as .mdb, .csv or .dbf. Rather, many applications use the
..dat extension for their own data files, in whatever format the
designers thought appropriate. Many .dat files are text files of one
kind or another, but others can use custom binary formats.

what kind of file is a dat file?
i don't have the capability to imporot dat files into access
 
C

Carol

thanks
John Nurick said:
Hi Carol,

".dat" doesn't refer to any one format or family of formats, unlike
extensions such as .mdb, .csv or .dbf. Rather, many applications use the
.dat extension for their own data files, in whatever format the
designers thought appropriate. Many .dat files are text files of one
kind or another, but others can use custom binary formats.
 
D

Devra Komendanchik

-----Original Message-----
Hi Devra,

Sometimes this happens because the records in the .dat file are
separated by something other than the standard Windows line break, which
consists of a carriage return (hexadecimal 0D) followed by a linefeed
(0A).

To check this, open the file in a hex editor (if you don't have one
there are some free ones available, e.g.
http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32 ..htm and
http://www.expertcomsoft.com/download.htm



Can not import *.dat file extensions through Access 97.
It does not interrupt the carriage return character and
data is in one long stream. Excel 97 does interpret the
*.dat files correctly, but I would like to automate the
import process and not have to go through Excel to convert
and then import to Access 97. Even if I change the
extension to *.txt Access 97 still does not interpret it
correctly. Does anyone have the answer?

Thank you,
Devra

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
.
John,

I have ultra edit and I checked the .dat file in the hex
mode of the editor and it does have the windows carriage
return of OD OA of which you speak. Access 97 will not
interpret them properly. Any other suggestions?
 
D

Devra Komendanchik

-----Original Message-----
Hi Devra,

Sometimes this happens because the records in the .dat file are
separated by something other than the standard Windows line break, which
consists of a carriage return (hexadecimal 0D) followed by a linefeed
(0A).

To check this, open the file in a hex editor (if you don't have one
there are some free ones available, e.g.
http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32 ..htm and
http://www.expertcomsoft.com/download.htm



Can not import *.dat file extensions through Access 97.
It does not interrupt the carriage return character and
data is in one long stream. Excel 97 does interpret the
*.dat files correctly, but I would like to automate the
import process and not have to go through Excel to convert
and then import to Access 97. Even if I change the
extension to *.txt Access 97 still does not interpret it
correctly. Does anyone have the answer?

Thank you,
Devra

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
.
John,

What finally worked for us was we create a blank .txt
file, perform the Get of the .dat into that .txt file from
the FTP site and then import using the .txt file.

Thanks for the help!
Devra
 
J

John Nurick

What finally worked for us was we create a blank .txt
file, perform the Get of the .dat into that .txt file from
the FTP site and then import using the .txt file.

I don't quite see how this could have made a difference, unless you were
trying to import the data via ftp (which AFAIK doesn't work in any
version of Access) instead of downloading the file to a local or LAN
drive and importing the data from there.
 
M

Marlo Brandon

I had that problem where it really looked like that line feed was the
problem, when actually there was some binary data in the file.
Maybe ftp-ing the file removed that bad data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top