Solved

Code a line break in MS Access query

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

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…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

777 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