472,096 Members | 1,277 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

Carriage Return Issue

I have a VBA function that returns a string including "vbcr" (VB Carriage
Return) to seperate a list into multiple rows, eg Item1 & vbcr & Item2 &
vbcr & Item3
This works as planned in the immediate window, producing a list where a
Carriage Return follows each item. But when I output the result into either
an Access query or form, instead of carriage returns I get little square
symbols between each of the items. Is anyone able to tell me how to achieve
my objective of getting carriage return characters in vba that Access can
interpret?
Nov 13 '05 #1
2 4033
"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:nx******************@news-server.bigpond.net.au...
I have a VBA function that returns a string including "vbcr" (VB Carriage
Return) to seperate a list into multiple rows, eg Item1 & vbcr & Item2 &
vbcr & Item3
This works as planned in the immediate window, producing a list where a
Carriage Return follows each item. But when I output the result into either
an Access query or form, instead of carriage returns I get little square
symbols between each of the items. Is anyone able to tell me how to achieve
my objective of getting carriage return characters in vba that Access can
interpret?


Standard Access controls require both a carriage return and a line feed. Use
vbCrLf instead.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
many thanks Rick

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:30*************@uni-berlin.de...
"Andrew Chanter" <he****@radsolutions.com.au> wrote in message
news:nx******************@news-server.bigpond.net.au...
I have a VBA function that returns a string including "vbcr" (VB Carriage
Return) to seperate a list into multiple rows, eg Item1 & vbcr & Item2 & vbcr & Item3
This works as planned in the immediate window, producing a list where a
Carriage Return follows each item. But when I output the result into either an Access query or form, instead of carriage returns I get little square
symbols between each of the items. Is anyone able to tell me how to achieve my objective of getting carriage return characters in vba that Access can interpret?
Standard Access controls require both a carriage return and a line feed.

Use vbCrLf instead.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Canes_Rock | last post: by
4 posts views Thread by Josh | last post: by
1 post views Thread by Wolfgang Schmidt | last post: by
2 posts views Thread by Matt Mercer | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.