PC Review


Reply
Thread Tools Rate Thread

adding a Carriage Return or Line Feed character to an update query

 
 
Paul
Guest
Posts: n/a
 
      25th May 2010
I'm building an update query that will concatenate two fields and update the
first field with the combination of the two fields. However, I would like
to separate the two components with a blank line, or two carriage return or
line feed characters. In Visual Basic, I'd use vbcr&vbcr to do this. How
can I do this in an update query?

Thanks in advance,

Paul


 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      25th May 2010
Chr(13) & Chr(10)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"Paul" <(E-Mail Removed)> wrote in message
news:e7USUv5#(E-Mail Removed)...
> I'm building an update query that will concatenate two fields and update
> the first field with the combination of the two fields. However, I would
> like to separate the two components with a blank line, or two carriage
> return or line feed characters. In Visual Basic, I'd use vbcr&vbcr to do
> this. How can I do this in an update query?
>
> Thanks in advance,
>
> Paul
>

 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      26th May 2010
Chr(13) & Chr(10) work great.

My thanks to Marsh and Allen.

I used the expression

SET fld1 = fld1 & Chr(13) & Chr(10) & Chr(13) & Chr(10) & fld2

and it put a blank line in between the two concatenated fields, which is
exactly what I was trying to accomplish.

Paul


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a Hard Return or carriage return in an update query? Lakota2k Microsoft Access Queries 1 15th Sep 2008 04:56 AM
Line Feed & Carriage Return with XML? =?Utf-8?B?UmFlZCBTYXdhbGhh?= Microsoft ASP .NET 2 25th Oct 2004 03:07 PM
Carriage Return Line Feed Centaur Microsoft Access Forms 4 26th Jul 2004 09:42 PM
Carriage Return or Line Feed Fred Microsoft Access Reports 1 29th Sep 2003 11:46 PM
Carriage Return and Line Feed David N. Microsoft C# .NET 3 19th Aug 2003 09:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:27 AM.