date time in vba

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blad3runn69
    New Member
    • Jul 2007
    • 59

    date time in vba

    howdy, I was hoping someone could point in the right direction
    re: in vba evaluate combined value from a date field and time field against current system datetime eg. (date & time) < now

    how to create expression(oper ators?) (a & b) < c

    thank you, muchly appreciated
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    Access is pretty flexible as long as the resultant "date/time" looks like a real date/time. Something like this should work:

    Cdate(A & " " & B) > Now

    Linq ;0)>

    Comment

    • blad3runn69
      New Member
      • Jul 2007
      • 59

      #3
      cool stuff, - got it working.

      Thankyou so much for your help missinglinq, it really is muchly appreciated :)

      Comment

      • missinglinq
        Recognized Expert Specialist
        • Nov 2006
        • 3533

        #4
        That's why we're here!

        Comment

        Working...