Wrong date-trapping

dualshock03

Well-known member
Joined
Jan 28, 2007
Messages
105
Programming Experience
1-3
in what way will i do this?? i need to ristrict the user when adding birthday by need to check if the user attempts to select a birthdate which is below year 1940's and above 1988 year.. of course this range will not be fixed and will change as our exact year goes by... will it be right to use the datetimepicker for this??

LOGIC:

program checks age

if username selects below 1940(not fixed year) deriving to the user's age..
prompt an error message..
else date accepted..

if username selects above 1990(not fixed year) deriving to the user's age..
prompt an error message..
else date accepted..




i need some codes if anyone.. i already saw this kind of feature on a website but i forgot the url and i need it working on visual basic code..
 
in what way will i do this?? i need to ristrict the user when adding birthday by need to check if the user attempts to select a birthdate which is below year 1940's and above 1988 year.. of course this range will not be fixed and will change as our exact year goes by... will it be right to use the datetimepicker for this??

LOGIC:

program checks age

if username selects below 1940(not fixed year) deriving to the user's age..
prompt an error message..
else date accepted..

if username selects above 1990(not fixed year) deriving to the user's age..
prompt an error message..
else date accepted..




i need some codes if anyone.. i already saw this kind of feature on a website but i forgot the url and i need it working on visual basic code..

personally i wouldnt use a datetime picker for this as theres too many clicks to get back to 1940 :)

best thing is to use 3 listboxes, one for day, month and year.

that way people can get to their date of birth in 6 clicks...

trapping the year from a dedicated listbox is going to be easy.
 
Back
Top