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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete vbNewLine(s) from MemoField and keep the MemoField format – how

Status
Not open for further replies.

cuok

Programmer
Dec 24, 2001
201
Thanks in advance for any help:

Delete vbNewLine(s) from MemoField and keep the MemoField format – how?

The MemoField looks like this:

INDIA
vbNewLine
vbNewLine
USA
AFGANISTAN
ISRAEL
vbNewLine
BELGIUM

Of course instead of “vbNewLine” there is empty row.

What I need is:

INDIA
USA
AFGANISTAN
ISRAEL
BELGIUM

How can I do it?

thanks again
CUOK


 
Well you can try this in a new column of your query:
MyMemo:Replace(MemoField,vbNewLine," ")

but I think this will return
INDIA USA AFGANISTAN ISRAEL BELGIUM

Try it and let us know.

Paul
 
Hi PaulBricker 1

Thanks a lot!

You have been right in what i'm getting.
what i'm going to try now is:

Replace(MemoField," ",vbNewLine)

i'll let you know how it goes

regards CUOK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top