Makes no sence

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My Access db is linked to SQL db's.
I created a report then ran my mde and the users open the mde.

One date on the report returns incorrect on every PC except mine.
If I'm at a different PC open the mde the date is incorrect.
If I'm at my PC open the mde the date is correct.
If someone else sites at my PC and opens the mde the date is correct.

This makes no sense to me - The same mde is being opened.
When I'm at another PC and open the mdb the same thing, wrong date.

Makes no Sense - I don't even know what to check!!!!

Thanks
 
Any attempt at answering this will be pure guesswork since "the date is
incorrect" could mean just about anything. But, here's my guess: check the
regional settings in the Windows control panel on the various computers.
 
Regional setting are correct.

By "the date is incorrect" - I understand and I don't know how else to say
it. The report lists information for multiple people (nothing fancy) but the
date value is wrong on everyone's PC except mine.
People throughout the State use this application through Access Runtime (mde)
If I log onto another PC (with runtime or the full blown Access2000) same
thing happens - only my PC gives the correct date...

Very confusing. Suggestions Please...
 
Still doesn't help. What date do you see? What date do the other users
see? Where does the date come from? Is it a field in a table (details
please), or is it calculated, or what?
 
Dan @BCBS said:
My Access db is linked to SQL db's.
I created a report then ran my mde and the users open the mde.

One date on the report returns incorrect on every PC except mine.
If I'm at a different PC open the mde the date is incorrect.
If I'm at my PC open the mde the date is correct.
If someone else sites at my PC and opens the mde the date is correct.

This makes no sense to me - The same mde is being opened.
When I'm at another PC and open the mdb the same thing, wrong date.

Makes no Sense - I don't even know what to check!!!!

Time Zone?

Tom Lake
 
I already suggested that, he says that isn't the problem. however, until he
gives us some examples of "correct" dates and the corresponding "incorrect"
dates, plus some more information about where the displayed dates are coming
from, there isn't really anything else to suggest.
 
Completly understand but I did not want to start this dialog slamming a bunch
of code out there.
Before you look at the below information, please keep this in mind, the only
problem is the sub-report called "r_NearestDate"...
When the query is run alone, it will give the date 05/11/07 for the 4th
person but when the report is run that person will have a different date,
like the 5th nearest date. About 20% of the nearest dates are wrong on the
report but query returns the one correct date. I don't understand how the
sub-report, which was created from this query, could give a different date.

Report (r_Inventory) is created from Query (q_Inventory) and it has two
sub-reports.

q_Inventory has the following features:

1). This code counts how old the item is based on today minus receipt date:
Days: DateDiff("d",[TR_Date_TIMERCVD_HOI],Date())

2). Based on this code - it tells me when something is due:
DueDate: IIf([tr_inquirytype] In
("IN","NC"),Null,IIf([TR_DATE_TIMERCVD_HOI]<#07/01/2002#,"N/A",IIf([tr_24expedited]=True,DateAdd("h",24,[TR_DATE_TIMERCVD_HOI]),IIf([tr_expedited]=True,DateAdd("h",72,[TR_DATE_TIMERCVD_HOI]),IIf([tr_product]
In ("HO") And [tr_CaseType] In
("C","G"),[TR_DATE_TIMERCVD_HOI]+30,IIf([tr_product] In ("HO") And
[tr_CaseType]="P",[TR_DATE_TIMERCVD_HOI]+15,IIf([tr_product] In ("HO") And
[tr_InquiryType]="AD",[TR_DATE_TIMERCVD_HOI]+15,IIf([tr_product] In
("MM","MD","MP","AY") And [tr_InquiryType]="GR" Or
[tr_CaseType]="G",[TR_DATE_TIMERCVD_HOI]+30,IIf([tr_inquirytype]="OD",[tr_date_timercvd_hoi]+30,IIf([tr_inquirytype]="RD",[tr_date_timercvd_hoi]+7,IIf([tr_product]
In ("MM","MD","MP","AY") And
[tr_CaseType]="C",[TR_DATE_TIMERCVD_HOI]+60,IIf([tr_product] In
("MM","MD","MP","AY") And
[tr_CaseType]="P",[TR_DATE_TIMERCVD_HOI]+30))))))))))+IIf([tr_casetype] In
("C","P","G") And [tr_product] In ("MM","MD","MP","AY") And
[tr_extension]=True,14,0)))


r_Inventory is created from the above query and has two sub_reports.

Sub_report #1 comes from this query -
SELECT q_Inventory.TR_GRIEVANCECOORDINATOR, Min(q_Inventory.DueDate) AS
MinOfDueDate
FROM q_Inventory
GROUP BY q_Inventory.TR_GRIEVANCECOORDINATOR;

Sub_report #2 comes from this query -
SELECT q_InventoryCountA.TR_GRIEVANCECOORDINATOR,
Count(q_InventoryCountA.ICNNO) AS CountOfICNNO, q_InventoryCountA.TR_CLOSEDATE
FROM q_InventoryCountA
GROUP BY q_InventoryCountA.TR_GRIEVANCECOORDINATOR,
q_InventoryCountA.TR_CLOSEDATE
HAVING (((q_InventoryCountA.TR_CLOSEDATE) Is Null))
ORDER BY Count(q_InventoryCountA.ICNNO);

CONCLUSION:
When this report is run the only value screwed up is the sub_report
"r_NearestDate.


Suggestions????
 
Dan @BCBS said:
Completly understand but I did not want to start this dialog slamming a bunch
of code out there.
Before you look at the below information, please keep this in mind, the only
problem is the sub-report called "r_NearestDate"...
When the query is run alone, it will give the date 05/11/07 for the 4th
person but when the report is run that person will have a different date,
like the 5th nearest date. About 20% of the nearest dates are wrong on the
report but query returns the one correct date. I don't understand how the
sub-report, which was created from this query, could give a different date.

Report (r_Inventory) is created from Query (q_Inventory) and it has two
sub-reports.

q_Inventory has the following features:

1). This code counts how old the item is based on today minus receipt date:
Days: DateDiff("d",[TR_Date_TIMERCVD_HOI],Date())

2). Based on this code - it tells me when something is due:
DueDate: IIf([tr_inquirytype] In
("IN","NC"),Null,IIf([TR_DATE_TIMERCVD_HOI]<#07/01/2002#,"N/A",IIf([tr_24expedited]=True,DateAdd("h",24,[TR_DATE_TIMERCVD_HOI]),IIf([tr_expedited]=True,DateAdd("h",72,[TR_DATE_TIMERCVD_HOI]),IIf([tr_product]
In ("HO") And [tr_CaseType] In
("C","G"),[TR_DATE_TIMERCVD_HOI]+30,IIf([tr_product] In ("HO") And
[tr_CaseType]="P",[TR_DATE_TIMERCVD_HOI]+15,IIf([tr_product] In ("HO") And
[tr_InquiryType]="AD",[TR_DATE_TIMERCVD_HOI]+15,IIf([tr_product] In
("MM","MD","MP","AY") And [tr_InquiryType]="GR" Or
[tr_CaseType]="G",[TR_DATE_TIMERCVD_HOI]+30,IIf([tr_inquirytype]="OD",[tr_date_timercvd_hoi]+30,IIf([tr_inquirytype]="RD",[tr_date_timercvd_hoi]+7,IIf([tr_product]
In ("MM","MD","MP","AY") And
[tr_CaseType]="C",[TR_DATE_TIMERCVD_HOI]+60,IIf([tr_product] In
("MM","MD","MP","AY") And
[tr_CaseType]="P",[TR_DATE_TIMERCVD_HOI]+30))))))))))+IIf([tr_casetype] In
("C","P","G") And [tr_product] In ("MM","MD","MP","AY") And
[tr_extension]=True,14,0)))


r_Inventory is created from the above query and has two sub_reports.

Sub_report #1 comes from this query -
SELECT q_Inventory.TR_GRIEVANCECOORDINATOR, Min(q_Inventory.DueDate) AS
MinOfDueDate
FROM q_Inventory
GROUP BY q_Inventory.TR_GRIEVANCECOORDINATOR;

Sub_report #2 comes from this query -
SELECT q_InventoryCountA.TR_GRIEVANCECOORDINATOR,
Count(q_InventoryCountA.ICNNO) AS CountOfICNNO, q_InventoryCountA.TR_CLOSEDATE
FROM q_InventoryCountA
GROUP BY q_InventoryCountA.TR_GRIEVANCECOORDINATOR,
q_InventoryCountA.TR_CLOSEDATE
HAVING (((q_InventoryCountA.TR_CLOSEDATE) Is Null))
ORDER BY Count(q_InventoryCountA.ICNNO);

CONCLUSION:
When this report is run the only value screwed up is the sub_report
"r_NearestDate.


Suggestions????



Baz said:
I already suggested that, he says that isn't the problem. however, until he
gives us some examples of "correct" dates and the corresponding "incorrect"
dates, plus some more information about where the displayed dates are coming
from, there isn't really anything else to suggest.
 

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

Back
Top