Results 1 to 2 of 2

Thread: validation

  1. #1
    Join Date
    Dec 1969

    Default validation

    hi,<BR>i need to do date validation.If it is a month of only 30 days,then i shoudn&#039;t be able to enter date 31st.Similarly for the month of feb. that too with the validation of leap years?<BR>What do i do?<BR>Please help me....<BR>mickey

  2. #2
    Join Date
    Dec 1969

    Default RE: validation

    Why not use the IsDate() function?<BR><BR>If IsDate(theDateEntered) then<BR> &#039;good for you!<BR>else<BR> &#039;not a date<BR>end if<BR><BR>to check for a leap year:<BR><BR>Function LeapYear(theYear)<BR>If IsDate ("02-29" & theYear) then LeapYear = True<BR>end Function

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts