Neb,
Can your query not just have a column with the criteria
=[requestdate] + 15
Also, I do not understand the significance of the received date, is there something you’re trying to do with it?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Date problem (2000)
My question revolves around a date calculation. I am designing a query that calculates a due date from a request date that a someone types in. However there is a required add info date and time field that will stop the time elapsed. Once there is approval ,a received approval date and time in typed in . I need a calculation that would would calculate from request date to a time in the future(say 15 days) but not count the time between required add info date date and received approval date. Has anyone run across this before?
Thanks,
Neb
No worries, I just wanted to know more specifically what you were trying to achieve. Check out my example.
In it you will see tblOrderRequests, with the fields:
ID,
REQUEST_RECVD_DATE,
REQUEST_REVIEW_DATE,
REQUEST_APPROVED_DATE, and
REQUESTED_ACTION_DATE.
All the date fields are formatted as Date/Time (Short Date).
You will see there is also a query, named qryNumberOfDays
Field one is bound to your table, with ID (the order ID), and Field two is a calculated field, named Number Of Days. Don’t forget to select the calculated field, right click and go to properties. Change its format to ‘Number’. The calculated field is created as such:
Number Of Days: (([requested_action_date]-[request_recvd_date])-([request_approved_date]-[request_review_date]))
The formula above does exactly what you said, just a little bit simplified. It takes the total number of days between the submission of the request and the requested action date, and simply subtracts the number of days the request was away for revision.
Hope this helps
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications