Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    148

    Unanswered: put two fields (Date field and time field) together

    I have four Date/Time fields: StartDate, EndDate, StartTime and EndTime.

    Users are provided a calendar for both StartDate and EndDate.

    Users will need to input hh:mm for both StartTime and EndTime

    My problem is to calculate the elapse time. From Microsoft Office Online, I found the examples for On time and how much has elapsed sample functions there.

    Is there anyway to put StartDate and StartTime together to become a new Date/Time valuable (e.g. StartDateTime as Date/Time valuable) which the Access system can understand.


    As you can see, if I can do that, I can put EndDate and EndTime together to become a new Date/Time valuable (e.g. EndDateTime as Date/Time valuable ) also.

    Then I can use these two new valuables (StartDateTime and EndDateTime) to take advantage of the samples functions from Microsoft Office.

    Thank you in advance
    Last edited by sweetmail; 10-18-07 at 17:05.

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,424
    Provided Answers: 8
    Startat = startdate & " " & StartTime
    Endat = enddate & " " & Endtime
    this will work only if ???date is date and ??time is time
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Sep 2007
    Posts
    148
    Thank you myle,

    Let me try and will let you know

Posting Permissions

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