Hi again,
Below is the SQL query. I also checked the system date from immediate
window, and it showed the correct date (copied and pasted here).
?Date()
3/1/2010
Also, no references are marked as missing.
It just doesn't make sense. There are 8 different milestones that are
'watched', and all of them have a Proposed date in which I have the
function entered, and they have an Actual date in which I have 'Is
Null'. If Access is looking at the appropriate system date, then why
would this query work with a manually entered date as opposed to a
system date using the Date() function? It just doesn't make sense.
Here is the SQL query:
SELECT Sheet1.StudyNumber, Sheet1.SD, Sheet1.PA, Sheet1.RW, Sheet1.RC,
Sheet1.Auditor, Sheet1.Stats, Sheet1.CO, Sheet1.SR, Sheet1.PR,
Sheet1.DTPR, Sheet1.CPA, Sheet1.AnalyticalCoordinator,
RTwithBIS.Stat1, RTwithBIS.Prog1, Sheet1.ADH, Sheet1.QAAnalytical,
Sheet1.PL, Sheet1.StudyComments, Sheet1.StudyRelatedInfo,
Sheet1.DataArchivedProposed, Sheet1.DataArchivedActual,
Sheet1.ToBISProposed, Sheet1.ToBISActual, Sheet1.RunStatsProposed,
Sheet1.RunStatsActual, Sheet1.ToPeerReviewerProposed,
Sheet1.ToPeerReviewerActual, Sheet1.TablesToSCProposed,
Sheet1.TablesToSCActual, Sheet1.CPTablesTextProposed,
Sheet1.CPTablesTextActual, Sheet1.InlifeToQAProposed,
Sheet1.InlifeToQAActual, Sheet1.InlifeFromQAProposed,
Sheet1.InlifeFromQAActual, Sheet1.PathTeraToQAProposed,
Sheet1.PathTeraToQAActual, Sheet1.PathTeraFromQAProposed,
Sheet1.PathTeraFromQAActual, Sheet1.ToSDForResultsProposed,
Sheet1.ToSDForResultsActual, Sheet1.ResultsFinishedProposed,
Sheet1.ResultsFinishedActual, Sheet1.ToQAForDrftRevProposed,
Sheet1.ToQADrftRevActual, Sheet1.FromQADrftRevProposed,
Sheet1.FromQADrftRevActual, Sheet1.MailDateProposed,
Sheet1.MailDateActual, Sheet1.PathToSCProposed, Sheet1.PathToSCActual,
Sheet1.AnalyticalArchiveDateProposed,
Sheet1.AnalyticalArchiveDateActual, Sheet1.PlasmaArchiveDateProposed,
Sheet1.PlasmaArchiveDateActual FROM Sheet1 INNER JOIN RTwithBIS ON
Sheet1.StudyNumber = RTwithBIS.StudyNumber WHERE (((Sheet1.RW) Like
"EEM" Or (Sheet1.RW) Like "RSB" Or (Sheet1.RW) Like "DSC" Or
(Sheet1.RW) Like "JAC" Or (Sheet1.RW) Like "JLC" Or
(Sheet1.RW) Like "AMO" Or (Sheet1.RW) Like "RAR" Or (Sheet1.RW) Like
"KLS" Or (Sheet1.RW) Like "KAT") AND ((Sheet1.DataArchivedProposed)
Between #1/1/2001# And Date()) AND ((Sheet1.DataArchivedActual) Is
Null)) OR (((Sheet1.RW) Like "EEM" Or (Sheet1.RW) Like "RSB" Or
(Sheet1.RW) Like "DSC" Or (Sheet1.RW) Like "JAC" Or (Sheet1.RW) Like
"JLC" Or (Sheet1.RW) Like "AMO" Or (Sheet1.RW) Like "RAR" Or
(Sheet1.RW) Like "KLS" Or (Sheet1.RW) Like "KAT") AND
((Sheet1.ToPeerReviewerProposed) Between #1/1/2001# And Date()) AND
((Sheet1.ToPeerReviewerActual) Is Null)) OR (((Sheet1.RW) Like "EEM"
Or
(Sheet1.RW) Like "RSB" Or (Sheet1.RW) Like "DSC" Or (Sheet1.RW) Like
"JAC" Or (Sheet1.RW) Like "JLC" Or (Sheet1.RW) Like "AMO" Or
(Sheet1.RW) Like "RAR" Or (Sheet1.RW) Like "KLS" Or (Sheet1.RW) Like
"KAT") AND
((Sheet1.ToSDForResultsProposed) Between #1/1/2001# And Date()) AND
((Sheet1.ToSDForResultsActual) Is Null)) OR (((Sheet1.RW) Like "EEM"
Or
(Sheet1.RW) Like "RSB" Or (Sheet1.RW) Like "DSC" Or (Sheet1.RW) Like
"JAC" Or (Sheet1.RW) Like "JLC" Or (Sheet1.RW) Like "AMO" Or
(Sheet1.RW) Like "RAR" Or (Sheet1.RW) Like "KLS" Or (Sheet1.RW) Like
"KAT") AND
((Sheet1.ResultsFinishedProposed) Between #1/1/2001# And Date()) AND
((Sheet1.ResultsFinishedActual) Is Null)) OR (((Sheet1.RW) Like "EEM"
Or
(Sheet1.RW) Like "RSB" Or (Sheet1.RW) Like "DSC" Or (Sheet1.RW) Like
"JAC" Or (Sheet1.RW) Like "JLC" Or (Sheet1.RW) Like "AMO" Or
(Sheet1.RW) Like "RAR" Or (Sheet1.RW) Like "KLS" Or (Sheet1.RW) Like
"KAT") AND
((Sheet1.ToQAForDrftRevProposed) Between #1/1/2001# And Date()) AND
((Sheet1.ToQADrftRevActual) Is Null)) OR (((Sheet1.RW) Like "EEM" Or
(Sheet1.RW) Like "RSB" Or (Sheet1.RW) Like "DSC" Or (Sheet1.RW) Like
"JAC" Or (Sheet1.RW) Like "JLC" Or (Sheet1.RW) Like "AMO" Or
(Sheet1.RW) Like "RAR" Or (Sheet1.RW) Like "KLS" Or (Sheet1.RW) Like
"KAT") AND
((Sheet1.MailDateProposed) Between #1/1/2001# And Date()) AND
((Sheet1.MailDateActual) Is Null)) OR (((Sheet1.RW) Like "EEM" Or
(Sheet1.RW) Like "RSB" Or (Sheet1.RW) Like "DSC" Or (Sheet1.RW) Like
"JAC" Or (Sheet1.RW) Like "JLC" Or (Sheet1.RW) Like "AMO" Or
(Sheet1.RW) Like "RAR" Or (Sheet1.RW) Like "KLS" Or (Sheet1.RW) Like
"KAT") AND
((Sheet1.AnalyticalArchiveDateProposed) Between "#1/1/2001#" And
Date()) AND ((Sheet1.AnalyticalArchiveDateActual) Is Null)) OR
(((Sheet1.RW) Like "EEM" Or (Sheet1.RW) Like "RSB" Or (Sheet1.RW) Like
"DSC" Or
(Sheet1.RW) Like "JAC" Or (Sheet1.RW) Like "JLC" Or (Sheet1.RW) Like
"AMO" Or (Sheet1.RW) Like "RAR" Or (Sheet1.RW) Like "KLS" Or
(Sheet1.RW) Like "KAT") AND ((Sheet1.PlasmaArchiveDateProposed)
Between "#1/1/2001#"
And Date()) AND ((Sheet1.PlasmaArchiveDateActual) Is Null));
Thanks for any help.
Frank
[quoted text clipped - 31 lines]