Solved

How do I insert a chr(13) or vbCrLf in a Query expression builder.

Posted on 2009-04-07
2
910 Views
Last Modified: 2013-11-27
I have a query that contains 3 fields with varying strings.  I added an expression to combine the values of all three fields, seperated by a carriage return.  Problem is when I use chr(13) or chr(10) I get a box instead of the carriage return/line feed.  When I try vbCrLf, the query prompts for user input.  Is there any way to accomplish this?
0
Comment
Question by:cebaker75
2 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 24090161
Use Chr(13) *and* Chr(10)...

SELECT Field1 & Chr(13) & Chr(10) & Field2
From SomeTable
0
 

Author Closing Comment

by:cebaker75
ID: 31567636
Thanks!  Works perfect!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now