Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing Excel Files and losing Line Breaks

Status
Not open for further replies.

enbw

Technical User
Mar 13, 2003
296
I have created a spreadsheet in which some of the cells contain line breaks.

When I import this into Access 2000 the line breaks are formatted as characters and thus losing the format when using the field in a form.

How can I ensure the formatting is correct?

Many thanks
 
Are you SURE the cells actually contain line breaks, eg ASCII Chr$(10) and Chr$(13), or is the FORMAT of the cell simply allowing word wrap?

It sounds suspiciously like you might be pulling in TWO different pieces of information, rather than one long text string.

Can you give us an example?



Me? Ambivalent? Well, yes and no....
Another free Access forum:
More Access stuff at
 
Hi,

Thanks for the reply. I am migrating out of a PICK database into a flat file and then up into excel. Within the flat file the pick system produces two characters which denote a line break. In excel there is a small macro which replaces these characteres with &chr(10)&chr(13) which generates the line break, if word wrap is off this is denoted by a square character.

In excel if you create a cell with three lines in it using alt+enter this switches the word wrap on. I am not quite sure of the way forward.

Basically, I need to be able to take the flat file and in a form to show the contents with the original line breaks.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top