Results 1 to 7 of 7
  1. #1
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150

    Saving Records From A Report To A Table


    Hi

    I am creating a report by searching an employee id in program. What i want now is when the report is created i want some of the reports content to save auto in a table that i have created. Is there is anyway to do it.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Can you tell us a little more?
    If you are creating a report based on a selected EmployeeID, where exactly is the other data coming from?
    Sounds like it should be derived from tables related to Employee and specifically records related on that EmployeeID.
    So it may already be in a table or two or three. You could use a query if you need specific fields.

  3. #3
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150
    I have 4 tables

    1.Employee Details
    2.Rate Per Hour Details
    3.Work Details
    4.Payment Details

    When i search a record using Employee ID the report shows with

    1.Employee ID (Employee Table)
    2.Employee Name (Employee Table)
    3.Department Name (Work Table)
    4.Time In (Payment Table)
    5.Time Out (Payment Table)
    6.Total Hours Worked (Time_out - Time_IN)
    7.Total Payement ( Total Hours Worked * Rate) the rate comes from Rate table.

    I want these above details to be saved in a another table automatically when i create the report. or is it possible to create a button to save above records to a table. Seeking Help

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    That's not the normal/typical way of doing things. You would not store that data separately since it can be derived from existing tables. You would use a query.

    Also, I would recommend you do NOT use a naming convention that allows embedded spaces. Sooner or later you'll encounter syntax errors.

    Please post a jpg/png (screen capture) of your tables and relationships.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    It is possible but have to ask why duplicate data into a fifth table?

    Since had to use a query to pull the data into report, makes no sense to save all that data to another table.

    Is it because Rate could change and you want to preserve historical data? Just save the Rate into the PaymentDetails table. This should be done during data entry.
    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.

  6. #6
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150
    The rate is not constant it changes once in every 3 months, if i save it onto a 5th table it will be easy for me to retrieve historical data.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    As I said, just save the rate with the original record during the original data entry process.
    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. Saving Records
    By jmitchelldueck in forum Programming
    Replies: 5
    Last Post: 07-22-2015, 02:25 PM
  2. Replies: 3
    Last Post: 04-22-2015, 04:35 AM
  3. Form not saving records
    By jree3000 in forum Forms
    Replies: 9
    Last Post: 06-17-2014, 07:01 PM
  4. Form not saving multiple records in Table
    By element32d in forum Forms
    Replies: 3
    Last Post: 05-14-2013, 01:32 PM
  5. Replies: 4
    Last Post: 06-18-2012, 07:01 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