Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Within my OLE DB query, I would like to use a calculated date for the
selection criteria. I'm using Excel to create a summary report against a SQL database. Completion date is one of the fields, I only want to select those records that are completed on/after the Monday three weeks ago, NOW() - ((WEEKDAY(NOW(),3)) + 21). The report shows the prior three weeks, plus the current week's information. Copy of the OLE DB query - I would like to replace the "10/10/2005" with the calculated date. SELECT reqID, reqDate, fName, lName, inputTbl.userInput, adminsTbl.admFname, completeDate FROM requestsTbl, userTbl, InputTbl, adminsTbl WHERE (requestsTbl.reqDate LIKE '%2005%') AND completeDate '10/10/2005' and requestsTbl.userID = userTbl.userID AND requestsTbl.userInputID = inputTbl.userInputID AND (requestsTbl.assignedTo LIKE adminsTbl.adminID) ORDER BY completeDate, admFname, reqID Thanks, Gary Sakaguchi |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Resolved my query regarding total sum calculating | Excel Discussion (Misc queries) | |||
Calculating Difference Between Start Date & Time And End Date & Ti | Excel Discussion (Misc queries) | |||
Calculating recurring date in following month, calculating # days in that period | Excel Worksheet Functions | |||
Calculating days between current date and a date in future NETWORKDAYS() function | Excel Worksheet Functions | |||
Using imported Query & Calculating Dates | Excel Worksheet Functions |