I'm importing a text file and would prefer that it create a new row in
the access table for each row in the text file. However, it is
sporadically combing some of the lines into a single row.
eg.
row 1: &a4758v5976HDN OC
row 2: &a4758v7128H 14
row 3: &a4880v432H492 733
row 4: &a4880v936H003 5-D
&a4880v15125
&a4880v3312HIN WC5066
row 5: &a4880v3888H50 1
I'm not using specs or anything, just a standard fixed-width import -
Access 97. Anyone have a solution for this? Thanks. 5 2788
The first question is what creates this file? It looks like you may have
control characters that indicate end-of-lines or not. You may have to either
strip out these control characters or read character by character looking
for the right CrLf combination to put into a table.
Scott
<rd*****@yahoo. com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I'm importing a text file and would prefer that it create a new row in
the access table for each row in the text file. However, it is
sporadically combing some of the lines into a single row.
eg.
row 1: &a4758v5976HDN OC
row 2: &a4758v7128H 14
row 3: &a4880v432H492 733
row 4: &a4880v936H003 5-D
&a4880v15125
&a4880v3312HIN WC5066
row 5: &a4880v3888H50 1
I'm not using specs or anything, just a standard fixed-width import -
Access 97. Anyone have a solution for this? Thanks.
The file is created by a process that I do not have access to modify.
However, when I parse the file and import only the problematic lines,
they work correctly, each filing into its own row. Is access getting
sloppy in its handling?
If I can't fix this, does anyone have a script to read rows with
multiple lines of data and separate them into their own rows?
Scott Simonson wrote: The first question is what creates this file? It looks like you may
have control characters that indicate end-of-lines or not. You may have to
either strip out these control characters or read character by character
looking for the right CrLf combination to put into a table.
Scott
Tried it in Access XP - no problems. I suppose this is a 97 bug.
Tried it in Access XP - no problems. I suppose this is a 97 bug.
How are you importing the file? Are you automating this import? Are you
using the TransferText command?
You said that you are importing the bad lines, what for? Your data doesn't
look like fixed width, but if you are just trying to import into a single
field then I understand what you're doing there.
What version are you going to use? I prefer A2k but the help files stink on
it.
Scott
<rd*****@yahoo. com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. . The file is created by a process that I do not have access to modify. However, when I parse the file and import only the problematic lines, they work correctly, each filing into its own row. Is access getting sloppy in its handling?
If I can't fix this, does anyone have a script to read rows with multiple lines of data and separate them into their own rows?
Scott Simonson wrote: The first question is what creates this file? It looks like you may have control characters that indicate end-of-lines or not. You may have to either strip out these control characters or read character by character looking for the right CrLf combination to put into a table.
Scott This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: news |
last post by:
Our production database in an exported textfil runs about 60 MB.
Compressed that's about 9 MB.
I'm trying to import the export into another machine running FC3 and
mySQL 11.18, and it appears as though the file may be too big!
When I try to do it via command line:
mysql -u root --host=localhost printing < ./printing.txt
It eventually errors out with a "syntax error on line X" and only about
|
by: David Berry |
last post by:
Hi All. I'm looking for any help or sample code that can show me how to make a file import wizard in ASP.NET (VB preferred) like the one that MS Access uses. I'm working on a web site where the user has the ability to upload a file (.txt or .csv). The data in the file may be comma delaminated, tab delaminated, fixed width etc (we don't know).
What I'd like to create is something like MS Access uses to import an Excel file into the...
|
by: DCM Fan |
last post by:
Access 2K, SP3 on Windows 2K, SP4
All,
I have an import spec set up with quoted Identifiers and comma-separated
values. The text file is produced by a 3rd-party program of which I have no
control. It outputs all text fields surrounded by quotes, and all numeric
fields w/o quotes. All fields are separated with commas.
This has been working for 2 years, until today, when one of the data fields
|
by: Johnny Meredith |
last post by:
I have seven huge fixed width text file that I need to import to Access.
They contain headers, subtotals, etc. that are not needed. There is also
some corrupt data that we know about and can correct once the data is in
Access (or during the import process itself). Furthermore, the text files
are poorly set up, such that some records may be "shifted" over a few
characters, and therefore the fixed width nature of the file is corrupted.
...
|
by: Chris |
last post by:
Hi,
1) In file test.aspx, i put:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb"
Inherits="test" %>
<%@ import namespace="System.Data"%>
<%@ import namespace="System.Data.OleDb"%>
....
In file test.aspx.vb, i put:
| |
by: NathanB |
last post by:
Hi there,
I have a text file (flat file) which I would like to import on a
regular basis into Access. The text file contains 2 record types,
header (prefixed with RHD) and detail (prefixed with RDT). Each
recordtype has a unique structure.
-------------------------------------------------------------------------------
For example line one might read:
RHD123456ABCDEF
|
by: Supersonic |
last post by:
I’m a dba for a SQL and I’m trying to learn how to import data from a simple text file. The text file looks like "1, name" "2, name2" and so on. How is it possible to solve this import with python? It’s no problem to connect to the database and do some insert and select statement. It is when I put the read from text file and then insert this data to the database I got problem.
One script I have tried looks like this:
import pymssql
import...
|
by: Wandering |
last post by:
I know you guys are heavy duty coders, while I do ad-hoc analysis, and
rarely write code. And, I may be in the wrong groups because this is
about an install issue, and I don't think it's a code issue. But ...
Office 2000 was on this machine when it was given to me. I don't own
it. After installing Office 97, mine, in a different directory, and
checking most of it out, I uninstalled Office 2000.
Well, it's a lot easier to upgrade than...
|
by: EricR |
last post by:
I am trying to bcp import a text file into a SQL Server 2000 database.
The text file is coming out of a java application where order
information is written to the text file. Each record is on it's own
row, so the last item in each record has a new line character at the
end of it to create the next row. This works well in creating the file
however bcp does not like to import this text file with the extra blank
line at the end. If I change...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |