|
|
 |
| Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

March 26th, 2004, 12:21 PM
|
|
Authorized User
|
|
Join Date: Dec 2003
Location: , , .
Posts: 93
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Excel Text Imports Revisited
Source of Data = Excel spreadsheet, several columns wide, one of which contains text which basically describes a company, with hard returns embedded in the spreadsheet to seperate the various details so to speak.
The challenge is to import data from the excel spreadsheet into the db, somehow retaining the hard returns, so that when we produce a report the company description will show on the report with the hard returns as was in the excel spreadsheet.
For example: This is how it would show up in the xcel ss. Some of the details go on for several lines. Need to see the same on report output.
- Publisher of childrens books, with an emphasis on nutrition. New title launching this year.
- Publisher also has advertising support.
- Recently purchased competitor. From 1969-1988, publishers revenues were 60 million per year, but in
1990 saw a slip in revenue as computerized childrens books/games grew in popularity. An so on.
Sorry for long wind. This is beyond anything I have ever done
Can Grow is set to yes.
Any thoughts would be greatly appreciated.
|

March 26th, 2004, 04:40 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
You probably could search for the ControlChars.CrLf property in that string, and replace it with an empty string.
strText = strText.Replace(ControlChars.CrLf, "")
The ControlChars.CrLf is the equivalent for the vbCrlf in ASP/ VB.
Brian
|

March 26th, 2004, 04:50 PM
|
|
Authorized User
|
|
Join Date: Dec 2003
Location: , , .
Posts: 93
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Thanks Brian. That will help with the import, right? Will I then see the CR properly in the report output from the memo fields?
bph
|

March 27th, 2004, 11:10 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Actually, I screwed up and thought this was an ADO.NET question, but it's not. Anyways, do you have the capabilities to use VBA? You could do it that way. It's been a while. Basically, in the VB module, you search through the records, and replace vbCrLf with an empty string, such as:
replace(strText, vbCrLf, "")
You may be able to do this with an update statement in SQL, but I'm not sure.
Sorry about that,
Brian
|

March 29th, 2004, 02:08 PM
|
|
Authorized User
|
|
Join Date: Dec 2003
Location: , , .
Posts: 93
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Thanks Brian. I'll continue to hack away at it.
|

April 1st, 2004, 07:35 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: London, , United Kingdom.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Replaces Excel line feed with Access return.
scid=http://support.microsoft.com:80/support/kb/articles/Q115/5/76.ASP&NoWebContent=1
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |