I would not probably not have "various date categories" as fields. You
could normalize your dates using a union query. Then use the union query
as the record sources for the subreport and main report.
===quniDates========
SELECT [PKFieldName], [measure date] as TheDate, "Measure" as
DateCategory
FROM tblYourTable
WHERE [Measure date] is Not Null
UNION ALL
SELECT [PKFieldName], [delivery date], "delivery "
FROM tblYourTable
WHERE [delivery date] is Not Null
UNION ALL
SELECT [PKFieldName], [install date], "install"
FROM tblYourTable
WHERE [install date] is Not Null;
Use this query as the record source rather than your "wide" table with
multiple date fields.
--
Duane Hookom
MS Access MVP
In your eyes is it better for me to have all dates stored in a separate
table to make it easier for reporting? I have normalised some of the
database (thanks to Albert Kallal there) but did not consider it for
the dates as initially there were only 3 or 4 date fields used. Now
there are about 10
"Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
About the only code to run the calendar style report draws lines
between the days to match the height of the tallest day subreport. If
you don't want to draw lines between the day subreports, you can
comment out all of this code.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim lngHeight As Long 'store the height of tallest control
Dim i As Integer
Dim lngLeft As Long
For i = 1 To 5
'compare heights
If Me("srpt" & i).Height > lngHeight Then
lngHeight = Me("srpt" & i).Height
End If
Next
'add the height of other control
lngHeight = lngHeight + Me.txtDay1.Height
'draw the lines
'Me.DrawWidth = 28
For i = 0 To 5
lngLeft = i * Me.srpt1.Width
Me.Line (lngLeft, 0)-(lngLeft, lngHeight)
Next
End Sub
--
Duane Hookom
MS Access MVP
You might be able to but my coding abilities fall far short of this
level!
"Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
How is the "Calendar Style Schedule" different from the Outlook
style month at a glance? You can add code or conditional formatting
to change colors of entries.
--
Duane Hookom
MS Access MVP
Thanks for this Duane, are there any notes on the use of it?
Also I was hoping for more of an Outlook style month at a glance
with colour coding of the entries
"Duane Hookom" <DuaneAtNoSpanHookomDotNet> wrote in message
There are a number of sample calendar style reports in the
download at
http://www.access.hookom.net/Samples.htm.
--
Duane Hookom
MS Access MVP
I have a Kitchen Sales application that stores various date
categories - measure date, delivery date, install date etc. Does
anyone know of a calendar application that will scan through the
database and display a calendar for a specific month with all the
events shown?
Thanks
Mike