Ham Posted August 13, 2005 Posted August 13, 2005 (edited) I have a field to Display the Month and change to text format so I can use the pop-up list functiont: selection as below January February March April May June July August September October November December one of my database function need to know how many days of a month to calculate the OverTime Salary is anyone can tell me how should the script write? The field store the Month call "Begin Month" Thanks for reading this and please give me help thanks a lot Edited August 13, 2005 by Guest
RalphL Posted August 13, 2005 Posted August 13, 2005 The last day of the month is Date ( Month +1, 0, Year). Using Day function will then give you number of days in the month.
LaRetta Posted August 13, 2005 Posted August 13, 2005 You can also get the last day of the month using: theDate - Day(theDate) Tid-bit picked up from Comment! :(
comment Posted August 13, 2005 Posted August 13, 2005 That would be the last day of the PREVIOUS month.
LaRetta Posted August 13, 2005 Posted August 13, 2005 Ooops, hadn't had coffee yet. Of course. :blush:
Ham Posted August 14, 2005 Author Posted August 14, 2005 Thank you very much I have sort it out by you giving helps Thanks again... but I have a final problem can't figure out!! I guess it's quite difficult to figure out
RalphL Posted August 14, 2005 Posted August 14, 2005 (edited) Yes, when you won't tell us what it is. Edited August 14, 2005 by Guest typo
Ham Posted August 16, 2005 Author Posted August 16, 2005 well actually, the database I am creating is for calculating the promoter salary, but I need to divided to two part, first part also the root part is Promoter, I can select which promoter, then when I click in to the detail layout, I can choice different month of that promoter, but I don't know how to do that....
Recommended Posts
This topic is 7107 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now