+ Reply to Thread
Results 1 to 3 of 3

Checking Date Input

  1. #1
    Registered User
    Join Date
    10-23-2006
    Posts
    84

    Checking Date Input

    Please bear with a beginner.

    I want to check that the date input into a textboxt is entered as the month then days. I have tried to do it by putting this code into the textbox but it does nothing. can anyone help please?

    Private Sub txtInvDate_Change()
    Dim M(13 To 31) As String

    If InStr(1, txtInvDate.Text, "M") Then
    MsgBox "Month First Please"
    Exit Sub
    End If
    txtInvDate.SetFocus

    End Sub

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Have you tried the function isDate()

    Please Login or Register  to view this content.
    HTH
    Carim

  3. #3
    Registered User
    Join Date
    10-23-2006
    Posts
    84
    Sorry Carim, as I said, I'm a beginner. Wouldn't know where to start with that function.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1