Computing.Net > Forums > Programming > Access 2000 Calculations

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Access 2000 Calculations

Reply to Message Icon

Name: OCM
Date: January 29, 2003 at 12:44:52 Pacific
OS: Win 2000
CPU/Ram: 256 mb
Comment:


I have an eligibility tracker database designed in access 2000. The employees have to process the applications within 10 business days.
1. How do you determine business days, weekends and holidays?
2. If I have the following fields: AppStatus, EligDay, EligDate, AppReceived, Reassess etc. AppStatus has a dropdown of (NEW, EAP, REACTIVATE etc.)

How do I do the following calculations:

When you select NEW from AppStatus dropdown,
EligDay = EligDate – AppReceived

When you select REACTIVATE from AppStatus dropdown,
EligDay = EligDate -Reassess

Thanks in advance!
OCM




Sponsored Link
Ads by Google

Response Number 1
Name: smithdk
Date: January 29, 2003 at 20:00:17 Pacific
Reply:

Let me look at your second problem first. If I read it correctly, you only need to put in those statements in the "afterupdate" property of the "Appstatus" drop down box. Just use "if statements" to check if it is true and do the appropriate calculations.

Your first problem requires more work. Of course there are many ways to do this. I would assume that if its not a holiday and not on the weekend, then its a business day. You could create a table of all the holiday dates. Weekend dates are not needed here since Microsoft Access knows which days fall on weekends.
Once the date is input, you can store it in a variable and then increase it by one day. The next step is to determine if this day is on the weekend or holiday. You can use dcount (goto help for this command syntax). This command will tell you if that date exists in the holiday table (this is your holiday check). The next step would be to determine if the date is on the weekend. Use weekday (again goto help for the syntax on this command) to determine if it is on the weekend. You can use these two checks and then do your appropriate action. Hopefully I haven't confused you too much.




0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Access 2000 Calculations

Access 2000 Date/Time help www.computing.net/answers/programming/access-2000-datetime-help/2783.html

Access 2K Calculations www.computing.net/answers/programming/access-2k-calculations/6060.html

VB in Access 2000 www.computing.net/answers/programming/vb-in-access-2000/6005.html