Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Returning Wrong Year

Status
Not open for further replies.

ConfusedNAccess

Technical User
Jul 7, 2006
54
CA
The following query is not returning the correct due date. I have reports (sheetrowtext) that are are Decemeber reports that should show a due date of 2007, however they are coming back for this year. There is a field that i'm not using, called "actual year" which shows the year of the report.

meaning if the report is active from year 2005, 2006 2007 ,etc... How can I use this field to reflect the correct due date.

due dates can range from those years as well, I guess that's why it's pulling it out.


IIf([dbo_ActualReports].[Active12]=-1 And [dbo_ActualReports].[Month12Value]=0 And Year([dbo_ActualReports].[Month12DueDate])=Year(Now()) And IsNull([dbo_ActualReports].[Month12SignOff]) And [dbo_ActualReports].[Month12DueDate]<=[Enter paramater for date to check],([dbo_BorrowerReports].[SheetRowText] & " " & [dbo_ActualReports].[Month12DueDate]),[dbo_ActualReports].[Month12SignOff]) AS [Dec]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top