Re: Makes no sence
- From: Dan @BCBS <DanBCBS@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 May 2007 04:59:01 -0700
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" wrote:
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.
"Tom Lake" <tlake@xxxxxxxxxxxx> wrote in message
news:eTBjO7goHHA.3460@xxxxxxxxxxxxxxxxxxxxxxx
"Dan @BCBS" <DanBCBS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CE3509E6-1E16-48A3-9897-3542BF8B3C6C@xxxxxxxxxxxxxxxx
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
- Follow-Ups:
- Re: Makes no sence
- From: Dan @BCBS
- Re: Makes no sence
- References:
- Re: Makes no sence
- From: Tom Lake
- Re: Makes no sence
- From: Baz
- Re: Makes no sence
- Prev by Date: Re: Tabela - 1ª linha e a 1ª coluna são valores de uma tabela com 2 co
- Next by Date: Re: Major report problem
- Previous by thread: Re: Makes no sence
- Next by thread: Re: Makes no sence
- Index(es):
Relevant Pages
|