Results 1 to 4 of 4
  1. #1
    Jeremy Sng is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Aug 2016
    Posts
    43

    Can't auto update the date.

    Hi Everyone,



    I got a problem with this code. DateDiff('h',[DateInstalled],[=Date()])

    I don't want it to appear in the new line.

    The following code unable to auto update the date.

    Any idea that i can update the existing date that i keyed?

    Thanks

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,530
    Can you give us a clearer explanation of what you are trying to do
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    DateDiff('h',[DateInstalled],[=Date()])
    Shouldn't have the equals sign nor the brackets around the date function.

    Try
    Code:
    DateDiff('h',[DateInstalled],Date())
    The brackets tell access that it is a field name..

  4. #4
    Jeremy Sng is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Aug 2016
    Posts
    43
    Hi ssanfu,

    Thanks for your help. My programme able to works.

    Best Regards
    Jeremy Sng

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 02-10-2017, 03:10 PM
  2. Replies: 3
    Last Post: 08-21-2015, 08:14 AM
  3. auto update txtbox with end of the month date
    By gstylianou in forum Access
    Replies: 5
    Last Post: 09-25-2014, 06:50 PM
  4. Auto update of date field
    By ase33592 in forum Forms
    Replies: 1
    Last Post: 08-05-2013, 02:32 PM
  5. Auto Update Question
    By LionsCricket in forum Access
    Replies: 3
    Last Post: 04-11-2013, 03:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums