Results 1 to 8 of 8
  1. #1
    stonward is offline Novice
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    4

    How can I 'batch process' records during data entry?

    I have a Form/Subform (one to many) arrangement that allows entry of Purchases/Purchase Details. Each time a record is entered - in the subform- and we move to the next, the record is naturally stored in the Purchase Details table.



    I want to be able to enter all the records BEFORE thay are stored in the table. This way the user can check the entries before they are stored and correct any mistakes prior to the records being saved to disc. This could be done, say, using an 'Enter Data' button. But is a temporary table the only way? Thus far this has proved 'clunky' at best. Is there not a way using recordsets?

    Or am I going about this the wrong way?!

    Thanks for your time,

    Stonward.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    I don't know any easy way to do this. What's wrong with the record going immediately into the table? Isn't it still available for editing?
    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.

  3. #3
    PRMiller is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Location
    St. Paul, MN
    Posts
    16
    June7, I haven't done this before but have heard of someone else using a similar approach: what about storing each new "proposed" record in an array and then, onclick for a Save button, looping through the array and performing some validation?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    You could load your records into a table, as June says. It could be a Temp table or a HoldingTank table or Prevalidate table.
    Then, read the records in the table and process with a validate procedure. Records that satisfy validation go to your "Production table";
    Records that fail validation go to an Errors table with appropriate error message/number for further analysis.

  5. #5
    stonward is offline Novice
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    4
    Hi June,

    Thanks for your reply. The problem with the records going directly to table is arithmetic! When the stock quantity is altered, it becomes an arithmetic logic nitemare to unravel (well, it was in the previous version of this system). In the end I had to give the user access to the tables in order to 'manually' enter/correct the data.

  6. #6
    stonward is offline Novice
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    4
    Thanks for your reply Orange,

    This is the method I am currently working with - something of a compromise, but likely to be the only realistic way to get the desired result. Not as wasy to set up as I would have thought. Currently I'm trying to have the subform data go into a table as temporary data, then delete it once it's been moved to the main table. But again, thanks for your reply.

  7. #7
    stonward is offline Novice
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    4
    Hi PRMiller,

    Thanks for your reply - this is an intriguing idea. Have to say I'm a serious beginner when it comes to arrays, but this is the sort of solution I am looking for - holding the data in - as it were - RAM, before entering it en-masse into the table proper. Gonna have a go! Thanks again.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    As I said, not easy, whether it is array or temp table. The root of this issue appears to be saving aggregate values (current stock quantity) during data entry instead of calculating aggregate data on report.
    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. Data entry related records
    By illoquentgent in forum Programming
    Replies: 10
    Last Post: 05-02-2012, 10:43 AM
  2. Replies: 1
    Last Post: 11-28-2011, 12:39 PM
  3. Replies: 6
    Last Post: 04-27-2011, 06:12 AM
  4. Replies: 0
    Last Post: 02-09-2011, 03:10 PM
  5. Replies: 0
    Last Post: 07-26-2010, 07:34 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