Results 1 to 3 of 3
  1. #1
    jmmunoz2141 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2013
    Posts
    11

    How to save results from a filter into a table

    I am currently creating an access db that will be used in a cafeteria to track how many meals employees eat throughout the day. There is one main form that has a text box (Text 32) employees enter their user id into and then click a submit command button (Command 35.) This command button runs a macro which applies a filter ([User ID] Like "*" & [Forms]![frm_cafe entry form]![Text32] & "*") that looks for the user id which then displays the users information on the form. I would like to know if it is possible for access to save the users information every time they enter their id number and click submit. What I would like to happen is whenever an employee clicks submit all the information that is displayed on the form as well as the date and time that they clicked submit will be added to a table or a report of some kind which can then be exported.

    I've attached the database to this post. The form that users will interact with is called 'frm_cafe entry form' and the table used to store all user's information in is called 'tbl_users.'



    I'm rather new to Access so I'm sure further elaboration is needed here so please let me know if I can provide any more info.

    Thanks in advance for any help
    Attached Files Attached Files

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Store the primary key values in an events table.

  3. #3
    jmmunoz2141 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2013
    Posts
    11
    Thanks for your help!

    I ended up using an append query that runs whenever the cmd button is clicked. Works like a charm!

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

Similar Threads

  1. Save subforms filtered results to table.
    By lewis1682 in forum Programming
    Replies: 33
    Last Post: 09-15-2013, 09:43 PM
  2. Replies: 1
    Last Post: 08-16-2012, 01:51 PM
  3. Replies: 3
    Last Post: 06-19-2012, 06:01 AM
  4. Save Combobox results to Table
    By Kinder0177 in forum Access
    Replies: 5
    Last Post: 06-29-2011, 08:47 AM
  5. Replies: 9
    Last Post: 01-20-2011, 02:22 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