Mike Singleton
|
| Posted: 04/25/2003, 7:18 AM |
|
How would I ensure that the start_date field is greater than the end_date? I am using the default date_picker control to allow the user to select. Some validation rule I suppose?
|
|
|
 |
Gilles Sarazin
|
| Posted: 05/06/2003, 12:21 PM |
|
You can use the events tab On Validate function and add custom code. The code I added for my app is below:
if Neighbrhood_Events.Date_Of_Event.value < date then Neighbrhood_Events.errors.addError("The Event date cannot be less than today")
also
if Neighbrhood_Events.Expire_date.value <= Neighbrhood_Events.Date_Of_Event.value then Neighbrhood_Events.Errors.addError("The Expire Date must be greater than Event Date")
Hope this helps.
Gilles
|
|
|
 |
|