Report + chart

T

Ticotion

Hi

I have a report thats is open with a form selecting dates from "date1" to
"date2". The form is based on a table that contains all dates. The
report-chart then shows date range on the x-axis.

My problem is that if the query, that the chart is based on, has no values
for some of the dates in the selcted date range, the chart still shows these
dates (with no value). How do I change this, so that if there are no values
for the selcted date, then it does not show the date?

For information the query gives me the correct result

And

I use the follwoing code when I run the report from the form

oCmd.OpenReport "RptCellSURGraf", acPreview, , "[Dato] >= #" &
Format(Me.Kombinationsboks5, "mm\/dd\/yyyy") & "# And [Dato] <=# " &
Format(Me.Kombinationsboks11, "mm\/dd\/yyyy") & "# And [Sektor] = " &
Me.Combo35 & " And [CelleNr] = " & Me.Kombinationsboks16 & " ", ,
acWindowNormal

Thank you for your help

Ticotion
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top