|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Validation...PLS Help
Hi, quite new to MS Access, just wondering if anyone could help with the following validation rule.
Right, for a school project i am creating a booking system. Because only over 18 are only allowed to book, within the customer details table their is the date of birth and i need a rule that will validate todays dates - 18 years......i've tried a few methods...something along the lines of >now-(years(18)....i dunno im new to this so if anyone knows PLEASE HELP....GREATLY APPRECIATED....RaYzor..peace ![]() |
|
#2
|
|||
|
|||
|
I use this, there is probably a better way, but this works
<Date()-(18*365) S- |
|
#3
|
|||
|
|||
|
hmmmm
Yeah, kinda had that 1 ..but instead of 18*365 i had all the 6570....
HOWEVER....the problem with this is that it doesnt take INTO ACCOunt LeAP years!!! WHich was my main concern...thanks ANYway...ANY ONE ELSe GOT SUGGESTIONs...PLEASE POST>.....THAnks ANyway |
|
#4
|
|||
|
|||
|
Try this.
<DateSerial(Year(Now())-18,Month(Now()),Day(Now())) |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > Validation...PLS Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|