Solved

Code a line break in MS Access query

Posted on 2009-03-30
3
1,031 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
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…

828 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