A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Importing data



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2010, 11:04 AM posted to microsoft.public.access
Sue[_9_]
external usenet poster
 
Posts: 65
Default Importing data

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...


  #2  
Old May 28th, 2010, 04:09 PM posted to microsoft.public.access
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Importing data

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...


.

  #3  
Old May 28th, 2010, 10:59 PM posted to microsoft.public.access
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Importing data

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...


.

  #4  
Old May 30th, 2010, 05:05 AM posted to microsoft.public.access
Francis Ruiz
external usenet poster
 
Posts: 1
Default Importing data


"Sue" wrote in message
...
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?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:05 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.