Results 1 to 3 of 3

Thread: Time Shift (XP)

  1. #1
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    387
    Thanks
    0
    Thanked 1 Time in 1 Post

    Time Shift (XP)

    I have a spreadsheet with times that are out by 30 minutes, how can I add/subtract 30 minutes? Preferable in access so I can reuse it but an excel formula would work for this project.

    It's easy for dates

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

    Re: Time Shift (XP)

    In Access, create a query based on the table.
    Select Query | Update Query to turn it into an update query.
    Add the time field.
    Enter the following expression in the Update to line, subtituting the correct field name:

    DateAdd("n", 30, [FieldName])

    to add 30 minutes. If you want to subtract 30 minutes, use -30 instead of 30.
    Select Query | Run or click the ! button on the toolbar to execute the update query.

  3. #3
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    387
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Time Shift (XP)

    That is so easy once you know.

    Thanks Hans

Posting Permissions

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