Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004

    Question Unanswered: Copy value from an Unbound combo...

    Hi! I have this "Login" form where it has an Unbound combo for the user to choose the "user name". Now, I'd like to create a "access-log" table where I could track who logged in and at what time.

    My only problem here is just to copy or tranfer the VALUE (UserID) of the Unbound combo (UserID combo-box) to the "tbl_accesslog".

    Could be a way to copy a value form an unbound combo-box to another table?

    I'll really appreciate your help here! Thanks in advance!

  2. #2
    Join Date
    Mar 2003
    The Bottom of The Barrel
    Provided Answers: 1
    Use an insert query.

    Something like:

    Dim sql As String
    sql = "INSERT INTO tbl_accesslog (UserID, access_time) " * _
    "VALUES (" & YourUnboundComboBox.value & ", date())"
    DoCmd.RunSQL sql
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

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