Solved

Code a line break in MS Access query

Posted on 2009-03-30
3
1,025 Views
Last Modified: 2013-11-28
I am running a SWITCH query on an access table and then using this field in a report.  The data returned needs to be broken into two lines.  Is there a way to make the result set expressed in a two line format by using some sort of a line break...i.e. <br> but for Access.  Here is my current query, the returned data would read on one line "mm/dd/yy (Actual)".  I would like that to be broken into two lines without just using space characters b/c that offsets the center formatting.
Target or Actual: Switch([Actual Delivery Date Value]<>'',[Actual Delivery Date Value] & "(Actual)")

Open in new window

0
Comment
Question by:szadroga
  • 2
3 Comments
 
LVL 46

Accepted Solution

by:
tbsgadi earned 500 total points
ID: 24018834
Hi szadroga,

Target or Actual: Switch([Actual Delivery Date Value]<>'',[Actual Delivery Date Value] & Chr(13) & Chr(10 & "(Actual)")

In the report format it as centered


Good Luck!

Gary
0
 

Author Comment

by:szadroga
ID: 24018974
works perfectly, thanks!
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24018984
Glad to help :>
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

762 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

21 Experts available now in Live!

Get 1:1 Help Now