UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Carriage Return In Access Giving Vertical Bars In Excel    
 
   
gouthamsworld
post Aug 22 2007, 02:47 PM
Post #1

UtterAccess Enthusiast
Posts: 80



HI
I AM EXPORTING A TABLE FROM ACCESS TO EXCEL.

BUT THE CARRAIGE RETURNS IN ACCESS FILE ARE BECOMING VERTICAL BARS IN EXCEL.

IS THERE A WAY WE CAN JUST KEEP THE CARRIAGE RETURN ???



THANKS
Go to the top of the page
 
+
freakazeud
post Aug 22 2007, 02:58 PM
Post #2

UtterAccess VIP
Posts: 31,413
From: NC, USA



Hi,
try to export a query instead of the table and within the query replace all carriage return and line feed characters with just the line feed (Chr(10)). You will need to implement a custom Replace function since you are using Acc97. Acc2000 and higher have a build in one. Check these:
01
02
HTH
Good luck
Go to the top of the page
 
+
gouthamsworld
post Aug 22 2007, 03:10 PM
Post #3

UtterAccess Enthusiast
Posts: 80



WHAT IF I AM USING 2000 OR HIGHER ONE

COZ I'VE USED THE BEFORE WHAT DO WE ENTER IN THE FIND FIELD( )
REPLACE WITH ( ) IN THE REPLACE FUNCION TO IDENTIFY AND REPLACE THE CARRIAGE RETURNS.
Go to the top of the page
 
+
freakazeud
post Aug 22 2007, 03:14 PM
Post #4

UtterAccess VIP
Posts: 31,413
From: NC, USA



Hi,
can you turn of caps lock...seems like you are yelling.
In Access 2000 or higher you can use the replace function e.g.:

=Replace([NameOfField], Chr(13) & Chr(10), Chr(10))

HTH
Good luck
Go to the top of the page
 
+
gouthamsworld
post Aug 22 2007, 03:16 PM
Post #5

UtterAccess Enthusiast
Posts: 80



what i mean is if we are trying to find and repalce a text or a character
for example if we r trying to find " aabcd" and replacing it with "1234" we will enter these strings in the FIND ,REPLACE fields respectively

but how to find a carriage return and replace it with linefeed????


thanks
Go to the top of the page
 
+
gouthamsworld
post Aug 22 2007, 03:21 PM
Post #6

UtterAccess Enthusiast
Posts: 80



thanks verymuch

its working


thank you again
Go to the top of the page
 
+
freakazeud
post Aug 22 2007, 03:29 PM
Post #7

UtterAccess VIP
Posts: 31,413
From: NC, USA



You're welcome.
Glad you got it sorted out.
Good luck on future projects!
Go to the top of the page
 
+
gouthamsworld
post Aug 22 2007, 03:59 PM
Post #8

UtterAccess Enthusiast
Posts: 80



still having some problems this replace function deleting some records.


let me explain you clearly about the whole process

first we import data in to our database from excel-in this case carraige returns in excel used to become small square boxes in access.i found a code to resolve this in microsoft knowledge base and resolved this issue.

now i want to send the output data back to excel for my managers review in the same format in which i recieved the input .

when i tried to export the output table o excel in excel instead of showing the carriage returns the date is seperated by vertical bars.


can you help


thanks in advance
Go to the top of the page
 
+
freakazeud
post Aug 22 2007, 04:27 PM
Post #9

UtterAccess VIP
Posts: 31,413
From: NC, USA



So any of the suggestions earlier didn't help at all? Did you create a query and implement either a custom replace function (in Access versions prior to Acc97) or the Replace() function (in all version Acc2000 and higher)?
HTH
Good luck
Go to the top of the page
 
+
gouthamsworld
post Aug 23 2007, 08:27 AM
Post #10

UtterAccess Enthusiast
Posts: 80



i did try using the replace() function but the ercords with the carraige returns seems to be missing


thanks
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 12:04 AM