Steve said:
Not really using any code just the built in feature from the chart using
the
form wizard.
From the field list I see my Datetime field named Timestamp and there is
also a Timestamp: by Week. I am just dragging that to the X axis. I have
looked into what you describe below but see no way to make that work. Is
there some way to include that in the way I am using this form?
I don't do much charting, but try this:
1. Open the form in design view
2. Click on the chart object and open its property sheet
3. Go to the Data tab of the property sheet
4. Click on the Row Source line. A "build" button (caption "...") will
appear at the end of the line.
5. Click on the build button. The rowsource query will open in the query
designer.
6. One of the calculated fields shown in the query grid will (I think)
contain a DatePart() expression along the lines of:
DatePart("ww",[Timestamp],0)
Change that expression to:
DatePart("ww",[Timestamp],0, 2)
Note that there will probably be other elements in the calculated field's
expression; just change this part.
7. Another of the calculated fields may contain a Format() expression along
these lines:
Format([Timestamp],"WW 'YY")
Change that expression to:
Format([Timestamp],"WW 'YY", 0, 2)
Again, only change this part of the calculated field's expression.
If I'm right, that ought to take care of it. However, these instructions
could be wrong in some way, if I've guessed wrong about how you have this
set up.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)