Results 1 to 4 of 4

Thread: easy question ... Date format

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 1999
    Location
    Michigan
    Posts
    56

    Smile

    Hi there,
    How do I check if a text box is entered with a valid date format not just some characters?? Thanks.


  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    you can use the "IsDate" function.

    Code:
    If IsDate(text1.text) then
      msgbox "Valid"
    Else
      msgbox "InValid"
    End If
    Iain, thats with an i by the way!

  3. #3
    New Member
    Join Date
    Jul 2000
    Location
    Herts, UK
    Posts
    4
    In the lostfocus section for the control, use the ISDATE function. The syntax is covered quite well in the help text.

    Check if the box is empty first, and if not, use isdate.


  4. #4

    Thread Starter
    Member
    Join Date
    Feb 1999
    Location
    Michigan
    Posts
    56

    Talking Thanks!!

    Thanks you guys!! \\(^0^)//

Posting Permissions

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



Click Here to Expand Forum to Full Width