Solved

Crystal Chart Horizontal Axis

Posted on 2014-03-10
9
387 Views
Last Modified: 2014-03-11
The chart in the screenshot shows several blood pressure readings. I’m working with Crystal Reports 2008. The database is Access 2010.

How can I change the horizontal axis so that it displays the date and time of each blood pressure reading?
Line ChartChart Design
0
Comment
Question by:Mark01
[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
  • 4
  • 4
9 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 400 total points
ID: 39918613
Try putting the DATE field in the box under FOR EACH RECORD

If that doesn't work then use ON CHANGE OF instead of FOR EACH RECORD

mlmcc
0
 

Author Comment

by:Mark01
ID: 39919045
The date and time are now on the horizontal axis, but the wrong date is displayed. How do I format the date?
chart.jpg
design.jpg
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39919213
What do you mean the wrong dateis displayed?

mlmcc
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 100

Expert Comment

by:mlmcc
ID: 39919216
You put the time on the report.  It probably doesn't have a date associated with it except the default date which it is displaying

mlmcc
0
 

Author Comment

by:Mark01
ID: 39919627
The table has both a time and date field. The time and date are entered for every blood pressure reading. The screenshots shows the time and date fields.
fields.jpg
table.jpg
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 400 total points
ID: 39919808
You only put the time field on the chart.  Most databases don't have a time datatye but simulate it with a datetime field with th edate ignored or set t day 0 which is generally 30 Dec 1899

DateTime(Date{tblBlood_Pressure.Date}), Time({tblBlood_Pressure.Time}))

Use that for the field in the chart

mlmcc
0
 

Author Comment

by:Mark01
ID: 39921443
I created a formula for the date and time, but I get an error. See the attached screenshots.

I used the following formulas:
DateTime(Date{tblBlood_Pressure.Date}), Time({tblBlood_Pressure.Time}))
DateTime((Date{tblBlood_Pressure.Date}), Time({tblBlood_Pressure.Time}))
Error-1.jpg
Error-2.jpg
0
 
LVL 35

Assisted Solution

by:James0628
James0628 earned 100 total points
ID: 39921542
mlmcc left out the "(" after the Date function.  Try this:

DateTime(Date({tblBlood_Pressure.Date}), Time({tblBlood_Pressure.Time}))

 James
0
 

Author Comment

by:Mark01
ID: 39921570
It works! Thank you, mlmcc and James0628.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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