GulfImages
Technical User
I knwo this must be real simple but I just have never tried it and can't find anything in a search.
I have some forms with a to and from date fields for criteria. I would like to make some buttons such as This Year, This Month, Last Year, Last Month and write some code that will simply fill in the fields with the to and from dates by clicking the buttons. I just can't figure how to calculate a month or year start and end date based on the date of Now().
Thanks in advance.
I have some forms with a to and from date fields for criteria. I would like to make some buttons such as This Year, This Month, Last Year, Last Month and write some code that will simply fill in the fields with the to and from dates by clicking the buttons. I just can't figure how to calculate a month or year start and end date based on the date of Now().
Thanks in advance.