Results 1 to 4 of 4
  1. #1
    mathanraj76 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    39

    time and Date open the forms

    Hi..I need help
    Each time when i open the forms it's must show the system time and system date as log in time and log in date at same time must shows how many hours and seconds the forms is open

    I have three textbox
    First textbox for use for log in time , second textbox is used for log in date and the third textbox is used to show the how many hours and seconds the forms is open


    Can i know show the username who is used the forms on the top of the forms..

    Thanks
    Mathanraj

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Save the date/time value when form is opened and the date/time value when form is closed. Then calculate the difference when need to know the elapsed time.

    Yes, can show username.

    Create a public function in a general code module:

    Function GetUser()
    GetUser = Environ("USERNAME")
    End Function

    Call the function from a textbox: =GetUser()
    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
    mathanraj76 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    39
    can you give some sample on date and time .
    I want it to show how many hours and minutes does the users open the forms and display on the forms..while the forms is open.

    Thanks
    Mathanraj

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    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: 4
    Last Post: 03-06-2013, 02:32 PM
  2. Breaking out the time from date/time
    By detaylor1242 in forum Programming
    Replies: 1
    Last Post: 02-19-2013, 08:10 PM
  3. Replies: 7
    Last Post: 01-28-2013, 05:21 PM
  4. Replies: 12
    Last Post: 02-22-2011, 03:39 PM
  5. Replies: 6
    Last Post: 01-04-2011, 05:43 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