+ Reply to Thread
Results 1 to 7 of 7

Thread: keep time and date

  1. #1
    Barn Newbie javier_83 is an unknown quantity at this point javier_83's Avatar
    Join Date
    Jul 2008
    Posts
    14
    Rep Power
    4

    keep time and date

    Hi people i need all your help!!

    i have a login form, that i enter my username and password, and then i enter to my main menu!!

    well my question is, how cabn i create a history table, so i can have wich person enter to the sistem

    i make another table

    - id_user
    - username
    - time
    - date

    so if someone can help me please!

    thanks to all!

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    What exactly do you need to know how to do? This is done easily via an INSERT SQL statement. Simply run the statement when the user logs in and you have a history of each time.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #3
    Barn Newbie javier_83 is an unknown quantity at this point javier_83's Avatar
    Join Date
    Jul 2008
    Posts
    14
    Rep Power
    4

    Quote Originally Posted by jmurrayhead View Post
    What exactly do you need to know how to do? This is done easily via an INSERT SQL statement. Simply run the statement when the user logs in and you have a history of each time.

    im really bad for coding, because im a rookie on this

    do you have an example???

    or some page i can read to learn how to do this??

  4. #4
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Here's a great place to start: Insert Into Query
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  5. #5
    Barn Newbie javier_83 is an unknown quantity at this point javier_83's Avatar
    Join Date
    Jul 2008
    Posts
    14
    Rep Power
    4

    i finally did it!!

    thanks i use this cod

    ok i did it

    i use this


    Quote:
    Private Sub cmdEnter_Click()
    On Error GoTo Err_cmdEnter_Click
    Dim rst As DAO.Recordset
    Set rst = CurrentDb.TableDefs("historialacceso").OpenRecords et
    rst.AddNew
    rst!Username = Me.cmbLogin
    rst!Fecha = Now()
    rst!Hora = Now()
    rst.Update
    rst.Close
    Set rst = Nothing

    Exit_cmdEnter_Click:
    Exit Sub
    Err_cmdEnter_Click:
    MsgBox Err.Description
    Resume Exit_cmdEnter_Click
    End Sub

  6. #6
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Glad I could help point you in the right direction

    We encourage members to click these icons after being helped: and
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  7. #7
    Barn Newbie javier_83 is an unknown quantity at this point javier_83's Avatar
    Join Date
    Jul 2008
    Posts
    14
    Rep Power
    4

    just did it, thanks!

+ Reply to Thread

Similar Threads

  1. Time Entry Form
    By sbenj69 in forum Access Database Samples
    Replies: 5
    Last Post: May 1st, 2009, 06:48 AM
  2. JavaScript Date & Time Display
    By jmurrayhead in forum JavaScript Code Samples
    Replies: 0
    Last Post: August 13th, 2008, 09:46 PM
  3. Display Assembly File Date And Time
    By Wolffy in forum .NET Code Samples
    Replies: 0
    Last Post: April 9th, 2008, 12:57 PM
  4. Site Down Time
    By jmurrayhead in forum Announcements
    Replies: 0
    Last Post: March 30th, 2008, 10:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO