Hello,
I'm looking for a code which will be checking the date of birth entered into the DOB field (i use dd/mm/yyyy format). If the person is over 18 years old the value in the 'Permission' field should change to 'No Needed' BUT if a person is under 18's the msg box should appear eg 'Please check the 'Permission'.
It would be even better if the dialogue box would appear instead of msg box asking 'Does the person have the permission?' and three buttons YES, NO and CANCEL. if user would chose YES the value in the Permission field would change to YES if user would chose NO the value in the Permission field would change to NO. If user would chose CANCEL the event would be cancelled and the value entered at the beginning to the DOB field would be deleted.
Any ideas would be appreciated.
Regards
I'm looking for a code which will be checking the date of birth entered into the DOB field (i use dd/mm/yyyy format). If the person is over 18 years old the value in the 'Permission' field should change to 'No Needed' BUT if a person is under 18's the msg box should appear eg 'Please check the 'Permission'.
It would be even better if the dialogue box would appear instead of msg box asking 'Does the person have the permission?' and three buttons YES, NO and CANCEL. if user would chose YES the value in the Permission field would change to YES if user would chose NO the value in the Permission field would change to NO. If user would chose CANCEL the event would be cancelled and the value entered at the beginning to the DOB field would be deleted.
Any ideas would be appreciated.

Regards