Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Temporary transaction files

Status
Not open for further replies.

cricket

Technical User
Jul 5, 2000
361
IE
In Foxpro, a common technique when adding data to files on a multi-user system was to copy the structure of the master file from a network drive to the local hard drive with 0 records, add new records to the temporary file and do the necessary validation, and then append back the entire temporary file onto the master file on the network.
This could be used for example when adding time recording sheets from employees to a timsheet database. Each timesheet would have multiple records, and none of these records can be committed to the main table until the internal integrity of all records on the timesheet are validated. A simple requirement might be that the sum of the hours entered would add up to 8.

How would this be done elegantly in Access, where multiple users could add records simultaneously?
 
You could do the same thing using a local table. I wouldn't try to copy the structure of the main table over, just have a little local version. When the data is ok, insert it into the main table.
You could still run into locks, but I suppose the same would be true for FoxPro. Peter Meachem
peter@accuflight.com

Support Joanna's Bikeathon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top