Thanks Duane this worked great! I have managed to get a report with
relative
dates for a 5 day period using just a start date. I also used Stephen
Lebans
PrintLines code to make the report easier to read - thanks a million
guys!!!
One other query you may be able to answer for me please? -
Currently some of the dates are blank where there is no entry for a
person,
this could be because an activity lasts for up to five days and the record
is
only entered once against the start date on the system. I do not know how
to
get the activity to show on all dates - I have asked this in a seperate
post
(twice now) with no replies as yet :-(.
In the meantime, I am thinking of exporting the report to Word so our
cleric
can fill in the blanks manually. If I do this using the transfer to word
command the data is transferred but obviously no lines and then it is hard
to
read and edit the document. I then thought of creating a template and
using
mail merge from access but I'm not sure if this can be done from using a
crosstab query? Can you help with this at all????
Thanks in advance for any help.
Sue
Duane Hookom said:
I would use relative dates and set up the report for a fixed number of
dates. The users would need to only enter the beginning or ending date.
Search Google or GoogleGroups on:
"relative dates" hookom crosstab Mth0
for some solutions. Come back if you have questions.
--
Duane Hookom
MS Access MVP
--
Thanks that worked, should have thought to try that - doh!
Actually, your 2nd point brings me on to my next problem. I want to be
able
to display this in a report rather than have to run as a query, but the
date
range will differ each time. The user is prompted to enter a start and
end
date, if I create a report based on the crosstab query it fixes the
column
heading with the dates in question but then the next time it is run
with
different dates it will not work or am I doing something wrong?
:
Did you try Format([ReviewDate],"dd mmm"", ""dddd") ?
The only way you can set the column order other than alphabetic is to
enter
values into the column headings property.
Normally records are displayed in forms or reports where you can move
columns as you like.
--
Duane Hookom
MS Access MVP
--
Hi, I have a crosstab query which has the date as column headings.
If
in
short date format the order is displayed correctly. The problem is I
want
it
to also show the day of the week and when I tried adding this the
sort
order
was incorrect. I used Format([ReviewDate],"d mmm"", ""dddd") but
Access
sorts the date 10 before 06. Is it possible to have the day
displayed
without
affecting the date sort order?
Thanks in advance for any help.
Sue