Results 1 to 3 of 3
  1. #1
    Tomlon is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    7

    Adding a Time Stamp to a Form

    I have a simple form. On this form, it is simply a maintenance form. Currently, it has a single button and a txt box. The on Load of the form runs a SUB that checks if the computer has access to the home server to update the database. This is a local copy of a database that the user can use remotely or away from office. This form check the connectivity and if there is connectivity it the button is enabled. The user can push the button and refresh their local copy. This works great. What I want is a time stamp on this form that states when the last update was. I placed a label. I added a a sub in the module that runs after the data refresh. It simply changes the caption of the label to that date of the refresh. Well, this works great....until I close the form. When I open the form back, it is blank as it was before the refresh. What other way can I do this that will retain that time stamp when I refresh the DB. Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    The caption change is not saved because the form is not saved with the edit. This is a design change of the form. I have never done this with VBA. Google: Access VBA design edit form

    An alternative is to have a table called UpdateInfo where the date can be saved. Can be only one record and the date is changed or can be a record for each change.
    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.

  3. #3
    1gambit is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    4
    http://office.microsoft.com/en-us/ac...001034535.aspx

    Here is what I just used to help me. I used the 2nd option of attaching an event to the form. Even though it is a tip for 2003, it worked perfect in 2010

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

Similar Threads

  1. Date and Time Stamp
    By zoooza84 in forum Access
    Replies: 2
    Last Post: 08-06-2011, 04:53 AM
  2. Help with Adding Time Stamp to Contact
    By shanethomp in forum Access
    Replies: 1
    Last Post: 11-09-2010, 09:43 AM
  3. Append Query: Time Stamp
    By AKQTS in forum Programming
    Replies: 3
    Last Post: 08-16-2010, 12:34 PM
  4. Question about Button and Time Stamp
    By euroclyde in forum Access
    Replies: 2
    Last Post: 06-16-2010, 09:01 AM
  5. Time Stamp Removal/deletion?
    By thorsonb in forum Access
    Replies: 3
    Last Post: 03-30-2010, 10:17 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