Results 1 to 3 of 3
  1. #1
    nono5551212 is offline Novice
    Windows 8 Access 2013
    Join Date
    Jun 2014
    Posts
    11

    How to add Short Date to Field

    I have this and it works.



    How can i get it to just add the date to that field SHORT DATE and no time?

    Private Sub Password_AfterUpdate()
    Last Updated = Now()
    End Sub


    Result = 6/6/2014 11:14:44 PM
    I just want the short date entered in that tables field 6/6/2014

  2. #2
    nono5551212 is offline Novice
    Windows 8 Access 2013
    Join Date
    Jun 2014
    Posts
    11
    I figured it out sorry for the false alarm..

    Private Sub Password_AfterUpdate()
    PassDate = Format(Now(), "Short Date")
    End Sub

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    That saves date as text instead of a date/time value.

    Make the field a date/time type then code is just:

    PassDate = Date()
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-16-2013, 09:11 AM
  2. Creating Short Cut Keys
    By djclntn in forum Access
    Replies: 1
    Last Post: 11-21-2012, 04:41 PM
  3. Datepicker set to short date: displays time?
    By sprovoyeur in forum Forms
    Replies: 3
    Last Post: 07-19-2011, 06:24 AM
  4. Short date comparison
    By andy101 in forum Programming
    Replies: 2
    Last Post: 03-17-2011, 04:36 AM
  5. CTRL +' Short Cut Key
    By desireemm1 in forum Access
    Replies: 2
    Last Post: 09-10-2009, 03:25 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