Results 1 to 2 of 2
  1. #1
    armyofdux is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2014
    Posts
    55

    Date Time Modified on Unbound text box updated with VBA code

    I am trying to put a little status bar that updates automatically based on newest or latest modified record in a table. I have some time and date fields built in to my "assets" table. They respond as desired and update when a record is created/modified etc. This status bar I speak of is on my switchboard and is built on an unbound text box. It's name is Date_TimeModified. I want the bar to update with the newest date of the latest modified record. I thought the following code might make it function.



    Me.Date_TimeModified = Max ("[Assets]", "Date_Modified") but it returns an error. Any suggestions?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    the function is: DMax(...)

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

Similar Threads

  1. Replies: 1
    Last Post: 04-24-2018, 07:00 AM
  2. Replies: 2
    Last Post: 01-16-2015, 04:22 PM
  3. Replies: 5
    Last Post: 11-21-2013, 09:30 AM
  4. Replies: 4
    Last Post: 03-06-2013, 02:32 PM
  5. the last updated date and time
    By venu in forum Access
    Replies: 2
    Last Post: 04-02-2010, 08:11 AM

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