Solved

Code a line break in MS Access query

Posted on 2009-03-30
3
1,037 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

630 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