juicybeasty
Registered User.
- Local time
- Today, 04:43
- Joined
- Feb 17, 2003
- Messages
- 52
I have a situation where I need dates in two separate formats.
Currently I have 3 fields - FollowUpDay (eg 19), FollowUpMonth (eg may) and FollowUpYear (eg 03). What I want to do is retain these, but have another field - FollowUpDate - in date/time format.
So I can work with the two formats simultaneously, they both need to be the same, which suggests an automatic update using VBA. My intention is that, on the form, the FollowUpDay, Month, Year fields will not be enabled, and the date could be entered in date/time format.
All I need help with is what code to put in the AfterUpdate event of the FollowUpDate field on the form, in order to separate the date into 3 separate fields.
Or is there a better way of doing it? In fact all I need from the date is the month, to use in a parameter query for reports.
Any suggestions?
Currently I have 3 fields - FollowUpDay (eg 19), FollowUpMonth (eg may) and FollowUpYear (eg 03). What I want to do is retain these, but have another field - FollowUpDate - in date/time format.
So I can work with the two formats simultaneously, they both need to be the same, which suggests an automatic update using VBA. My intention is that, on the form, the FollowUpDay, Month, Year fields will not be enabled, and the date could be entered in date/time format.
All I need help with is what code to put in the AfterUpdate event of the FollowUpDate field on the form, in order to separate the date into 3 separate fields.
Or is there a better way of doing it? In fact all I need from the date is the month, to use in a parameter query for reports.
Any suggestions?