From: Sue on
Hi all

I have a text file which I receive monthly and have to import to an Access
database. The file has ; as field separators and each record is on one line.
There are lots of errors in the file though (100s), where a user has pressed
carriage return before the end field marker which knocks the data out of
alignment and causes import problems. Is there any easier method then going
through this file manually in notepad to tidy it up? Using word allows find
and replace etc but in my experience it tends to cause additional problems
to the data sometimes.

Any suggestions? Thanks...


From: KARL DEWEY on
Have you considered using Excel to count colons in each line?

--
Build a little, test a little.


"Sue" wrote:

> Hi all
>
> I have a text file which I receive monthly and have to import to an Access
> database. The file has ; as field separators and each record is on one line.
> There are lots of errors in the file though (100s), where a user has pressed
> carriage return before the end field marker which knocks the data out of
> alignment and causes import problems. Is there any easier method then going
> through this file manually in notepad to tidy it up? Using word allows find
> and replace etc but in my experience it tends to cause additional problems
> to the data sometimes.
>
> Any suggestions? Thanks...
>
>
> .
>
From: KARL DEWEY on
This counts the number of colons in A1 --
=LEN(A1)-LEN(SUBSTITUTE(A1, ":", ""))

If there are less than number of fields minus one then a return was inserted
in the wrong place.

--
Build a little, test a little.


"KARL DEWEY" wrote:

> Have you considered using Excel to count colons in each line?
>
> --
> Build a little, test a little.
>
>
> "Sue" wrote:
>
> > Hi all
> >
> > I have a text file which I receive monthly and have to import to an Access
> > database. The file has ; as field separators and each record is on one line.
> > There are lots of errors in the file though (100s), where a user has pressed
> > carriage return before the end field marker which knocks the data out of
> > alignment and causes import problems. Is there any easier method then going
> > through this file manually in notepad to tidy it up? Using word allows find
> > and replace etc but in my experience it tends to cause additional problems
> > to the data sometimes.
> >
> > Any suggestions? Thanks...
> >
> >
> > .
> >
From: Francis Ruiz on

"Sue" <sportybabesue(a)hotmail.co.uk> wrote in message
news:uirFy0k$KHA.5168(a)TK2MSFTNGP05.phx.gbl...
> Hi all
>
> I have a text file which I receive monthly and have to import to an Access
> database. The file has ; as field separators and each record is on one
> line. There are lots of errors in the file though (100s), where a user has
> pressed carriage return before the end field marker which knocks the data
> out of alignment and causes import problems. Is there any easier method
> then going through this file manually in notepad to tidy it up? Using word
> allows find and replace etc but in my experience it tends to cause
> additional problems to the data sometimes.
>
> Any suggestions? Thanks...
>Francis Ruiz: i have no idea but if i know anything i will let you in on it
>ok?