|
|
| Author |
Message |
| M1ke |
This post is not being displayed .
|
 M1ke Ped Boi

Joined: 11 Jun 2002 Karma :   
|
 Posted: 17:31 - 04 Apr 2003 Post subject: using access |
 |
|
Im stuck with a simple validation rule
I have this field that displays a date, I need it to do a validation that will check that if its over 3 weeks from the current date then it displays a message saying 'this date is over three weeks ago'
I can do the pop up message and everything but what do i put in for the validation?
something along the lines of
iif date() = 3 weeks less than now() display 'your date is three weeks old'
^^ need that in a code it will recognise!
Hope someone can help me
cheers, Mike |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Keen |
This post is not being displayed .
|
 Keen World Chat Champion

Joined: 03 Apr 2002 Karma :   
|
 Posted: 18:11 - 04 Apr 2003 Post subject: |
 |
|
A level ICT?
I too know the horrors of the coursework and visual basic. Good luck  |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| TiN |
This post is not being displayed .
|
 TiN Pocket Tin

Joined: 14 Feb 2002 Karma :   
|
 Posted: 18:34 - 04 Apr 2003 Post subject: |
 |
|
Is it VB?
If so, then it's easy peasy
There's a function "DateDiff()", which returns the, er, difference between two dates
Thusly:
| Code: |
If DateDiff("d", Date, Date-to-compare) >= 21 Then
....
|
____________________ TiN
dotgems.net |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| MarsBar |
This post is not being displayed .
|
 MarsBar World Chat Champion

Joined: 21 Aug 2002 Karma :     
|
 Posted: 18:43 - 04 Apr 2003 Post subject: |
 |
|
Praise Tin! \o/  |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| G |
This post is not being displayed .
|
 G The Voice of Reason
Joined: 02 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Zimma |
This post is not being displayed .
|
 Zimma Wheelie Junkie

Joined: 04 Feb 2002 Karma :    
|
 Posted: 20:07 - 04 Apr 2003 Post subject: |
 |
|
yeah tis what g said, i've fiddled in it once or twice. couldnt really be bothered to learn it  ____________________ -Zimma |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| M1ke |
This post is not being displayed .
|
 M1ke Ped Boi

Joined: 11 Jun 2002 Karma :   
|
 Posted: 22:26 - 04 Apr 2003 Post subject: |
 |
|
You are the man tin! thankyou so much  |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| G1_ |
This post is not being displayed .
|
 G1_ World Chat Champion

Joined: 27 May 2002 Karma :     
|
 Posted: 09:40 - 05 Apr 2003 Post subject: |
 |
|
[rant]
Arg, VB
I can't understand why every one in my class prefers VB to Delphi. At least Delphi's a proper language.
[/rant] |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Mrs_Hippy |
This post is not being displayed .
|
 Mrs_Hippy The Pink Lady

Joined: 07 Jul 2002 Karma :     
|
 Posted: 09:07 - 06 Apr 2003 Post subject: |
 |
|
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| MarsBar |
This post is not being displayed .
|
 MarsBar World Chat Champion

Joined: 21 Aug 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Mrs_Hippy |
This post is not being displayed .
|
 Mrs_Hippy The Pink Lady

Joined: 07 Jul 2002 Karma :     
|
 Posted: 10:31 - 06 Apr 2003 Post subject: |
 |
|
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
Old Thread Alert!
The last post was made 23 years, 210 days ago. Instead of replying here, would creating a new thread be more useful? |
 |
|
|