Results 1 to 3 of 3

Thread: Date Compared to Logical Date

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Question

    I have 3 variables ( all integers)
    and I would like to know if I can
    use some function to see if they
    are more then 90 days in the past
    or more..

    And if they are have a MSGBOX say
    "This day is older then 90 days"

    ??

    Evan
    Evan Duffield --------
    --- [email protected]
    - -
    VB6 - Learning Edition
    - -


  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Now I am curious....

    You are listed as as senior member... have 142 posts under your belt and yet you are asking a question whose answer is found very simply in the help files for Visual Basic.

    Mmmmm....

    Anyway.

    Code:
    If Date() - DateSerial(yearvar,monthvar,dayvar) > 90 Then
       MsgBox "This day is older than 90 days"
    End If
    Perhaps you could let me know how it was you couldn't find these functions.... I am very interested in writing an article on helping people who don't know their way around VB very well and perhaps by understanding the process you went through in trying to solve this problem before asking people on here I can write that article better.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184
    Well I didnt know that was in the help files...
    But thankyou...
    Evan Duffield --------
    --- [email protected]
    - -
    VB6 - Learning Edition
    - -


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