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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|