Strange Report display problem - XP and Vista, Office 2003

kashifmalick

New member
Local time
Today, 12:07
Joined
Jan 17, 2010
Messages
7
Hi,
I have a strange problem in displaying of reports on Windows XP and Vista. My crosstab query display mission records for a particular month, for employees of my organisation. For example if I search by month of "April", the crosstab query will display all staff ( of different departments) who were on mission in April. On Windows Vista the report displays fine, that is the query only fetches records for APRIL. However on an XP system, apart from APRIL records, the report is repeating staff member names along with dates of arrival and exit of previous months. I have really failed to understand what is causing this problem Please see the attached pictures 'XP.jpg' and 'Vista.jpg' for better understanding.
Here's my crosstab query:
TRANSFORM Count(tblMaster_TEMP.keyMasterID) AS AvgOfkeyMasterID
SELECT tblMaster_TEMP.[Mission Status] AS Msn, (tblMaster_TEMP.OrgName) AS Agency, tblMaster_TEMP.FullName AS [Staff Member Name], tblMaster_TEMP.Location, tblMaster_TEMP.[Mission Start] AS [Arrival Date], tblMaster_TEMP.[Date of Exit] AS [Exit Date]
FROM tblMaster_TEMP
WHERE (((tblMaster_TEMP.[Date of Arrival]) Between #4/1/2010# And #4/30/2010# AND tblMaster_TEMP.Location = 'ISB' AND tblMaster_TEMP.[Mission Status] IN ('E' , 'P', 'S') ))
GROUP BY tblMaster_TEMP.OrgName, tblMaster_TEMP.[Mission Status], tblMaster_TEMP.FullName, tblMaster_TEMP.Location, tblMaster_TEMP.[Mission Start], tblMaster_TEMP.[Date of Exit]
PIVOT Format([Date of Arrival],'Short Date') In (4/1/2010,4/2/2010,4/3/2010,4/4/2010,4/5/2010,4/6/2010,4/7/2010,
4/8/2010,4/9/2010,4/10/2010,4/11/2010,4/12/2010,4/13/2010,
4/14/2010,4/15/2010,4/16/2010,4/17/2010,4/18/2010,4/19/2010,
4/20/2010,4/21/2010,4/22/2010,4/23/2010,4/24/2010,4/25/2010,
4/26/2010,4/27/2010,4/28/2010,4/29/2010,4/30/2010);
I'll be grateful if someone can help me. Many thanks.
 

Attachments

  • VISTA.jpg
    VISTA.jpg
    41.5 KB · Views: 152
  • XP.jpg
    XP.jpg
    68.1 KB · Views: 140
If you open the query only on each different m/c does the output differ? I cann see how the O/S would affect the display of the report.
 
Thxs David.
Yes, on an XP machine if I search for APRIL 2010 records, the query is displaying records (name of staff, their arrival date , exit date) from Jan, Feb & March as well. Whereas on VISTA it olny display records for APRIL 2010.

Month & year are selected from a drop down & provided to the query. Can something be wrong with my query?

Should I handover the copy of database to you, just incase.
 
Check the regional setting on the other machines Access may be converting the dates to US format. So 1/4/2010 is being read as 4/1/2010
 
Woww...David, it solved the problem. OMG it was only the date setting which was creating this mess. Thanks a million , you've solved my biggest problem ... :)
 
Sometimes it's the littlest things that make the biggest mess. Glad you have resolved the issue.:):)
 

Users who are viewing this thread

Back
Top Bottom