Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need Proper Query Update Date Format Syntax? (a2k (9.0.6926) SP-3 Jet 4.0

    I

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Need Proper Query Update Date Format Syntax? (a2k (9.0.6926) SP-3 Jet

    If the length of strSolemBeginTime is 5, you can't have a value 12:45P, that is 6 characters in length.

    Windows does not recognize times in hhnn format, they must be in hh:nn format. Moreover, you want to set dtmSolemBeginTime to a time value, not to a string value. Try this:

    UPDATE qrytbl_MLicense
    SET dtmSolemBeginTime = TimeValue(Left([strSolemBeginTime],2) & ":" & Mid([strSolemBeginTime],3));

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Need Proper Query Update Date Format Syntax? (a2k (9.0.6926) SP-3 Jet

    Perfect!

    TimeValue is a new one for me. Would of never found it on my own.

    Thanks, John

Posting Permissions

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