Results 1 to 3 of 3

Thread: Date and time fields adding using ADO with SUM Function

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    ISTANBUL/TURKEY
    Posts
    11

    Date and time fields adding using ADO with SUM Function

    How can I do to Date and Time fields adding using ADO with SUM function?

    Mytablo:Table1

    Myfield:
    Name=Times
    Tip=Long time

    Examples:

    Times

    12:35:40
    21:40:50
    03:05:25
    18:39:17

    SELECT SUM(Times) AS SumTimes FROM TABLE1

    if total time > 1 day then Sum function invalid total make

    What should I do?
    Bu forumdaki en cahil kiþi

  2. #2

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    ISTANBUL/TURKEY
    Posts
    11
    I FIND IT

    sql="select sum(vakit) as zaman from table1
    topla.open sql,conn

    Etiket(25).Caption = Val(Left(Topla.Fields("Zaman").Value, 1)) * 24 + Val(Left(Format(Topla.Fields("Zaman"), "hh:mm:ss"), 2)) & Right(Format(Topla.Fields("Zaman"), "hh:mm:ss"), 6)
    Bu forumdaki en cahil kiþi

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    ISTANBUL/TURKEY
    Posts
    11

    Date and time fields adding using Sum Function with ADO

    Date and time fields adding using Sum Function with ADO??????????????????????????????????????????????????????????????????????????????????
    Bu forumdaki en cahil kiþi

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