ggodwin
asked on
Access Form Control Source coding for Date field
I have a daily down load of data that I do year around. This data does not need to include multiple years. So, every January this data search includes records from the previous year, which I do not need to carry over. I'd like it to only download the current year. However, the problem is that the source website will only allow me to download 1000 records maximum. Currently, there are about 500 records permonth so I just can't leave the control source set to 1-1-Current year.
Currenlty I am using
=DateSerial(Year(Date()),M onth(Date( )),Day(Dat e()))-90 (This is always 90 days less than "today's date")
However, I would like to change this.
I need the date to be January 1, Current Year. (1-1-2015) until 90 days of the current year have expired. Then I need it to be 90 days less than the current date. So every year it changes automatically with the calendar and will not include records from the previous year.
Currenlty I am using
=DateSerial(Year(Date()),M
However, I would like to change this.
I need the date to be January 1, Current Year. (1-1-2015) until 90 days of the current year have expired. Then I need it to be 90 days less than the current date. So every year it changes automatically with the calendar and will not include records from the previous year.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can enter it to your field on a form, replacing your code:
=DateSerial(Year(Date()),M onth(Date( )),Day(Dat e()))-90
=DateSerial(Year(Date()),M
ASKER
Worked perfectly
ASKER