Results 1 to 4 of 4
  1. #1
    jvol is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    2

    Cool Creating a Timestamped activity list

    I am trying to create a time stamped activity list as a subform in my access database.

    Basically I have a table named tblTime with the following fields:

    Timestamp
    Location
    Notes
    ID

    Location is linked to a list containing the values:

    Start
    Assigned to User
    Sent to Client
    Print
    Close

    I've created a Form called frmTime that contains

    Txt box: Timestamp
    Combo Box: Location
    Txt box: Notes
    Button: New Record

    However, instead of having the button, I would like to be able to simply click on one of the options in the combo box and have the timestamp appear and also create a new record in tblTime with the Location value that was selected in the combo box.

    I can set the timestamp to appear when an option is selected in the combo box, but this does not create a new record in the table - it simply changes the timestamp in the active Location record

    I can make the form go to a new record when I select an option in the combobox and assign a timestamp, however this creates a new record without an option being selected in the combo box, and it changes the Location value of the previous record.

    Access gurus of the universe.. please help me.. I've been trying to resolve this for days to no avail. Any help would be greatly appreciated.

  2. #2
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    only one table can be linked to a forms record source at a time, you will have to have vba code to update the other table.
    or you may be able to link them in a query and use that for the form record source.

    1000 ways to skin a cat, allways looking for another one...
    Use MDB format for sample post. If your issue is fixed, mark the thread solved.
    Click on the star below if this has helped.

  3. #3
    jvol is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    2
    This little time stamp app works as long as i have a button that creates the following scenerio:

    1. User pushes buton
    2. New record is created
    3. Timestamp apears
    4. User Selects Location
    5. User writes a note
    6. Record is saved

    The idea is to get rid of the button and just make the timestamp and new record to be created when a location is selected.

    I want to reduce 3 clicks to two

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    In the afterupdate event of an unbound combo you could use something like

    DoCmd.GoToRecord acDataForm, "FormName", acNewRec
    Me.Fieldname.value = Me.ComboName.Column(0)

    Not sure if your combo is on a main form and you are trying for a new record in a subform. May need to adjust the code a little. I am also assuming the combo has some sort of relevance to the new record so I included a line to update the field.

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

Similar Threads

  1. Help creating a participant list
    By jholc in forum Queries
    Replies: 2
    Last Post: 08-05-2013, 11:01 AM
  2. Creating dynamic drop down list
    By SltPhx in forum Access
    Replies: 3
    Last Post: 07-29-2013, 10:17 AM
  3. Creating a rotating Job list
    By brharrii in forum Queries
    Replies: 4
    Last Post: 05-01-2013, 04:07 PM
  4. Creating a Multiple Parameter from a List
    By Huddle in forum Access
    Replies: 1
    Last Post: 10-12-2012, 12:04 PM
  5. Creating a list viewed by 2 criteria
    By phillyon in forum Queries
    Replies: 0
    Last Post: 12-01-2008, 11:46 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