Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 17th, 2007, 09:36 AM
Authorized User
 
Join Date: Nov 2005
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Updating a database with new records

I have a main database with tables linked using one-to-many relationship. forms have been created for data entry. The database is based at the main office. However, the data has to be collected from places away from the office. I want to have the the same database to be put on Laptop computers for data capture on site. But I want at the end to download all the new data or records from the laptop computer database. I want only to update the main database with only new records from the laptops. What should I do?

Bmulenga
__________________
Bmulenga
 
Old January 17th, 2007, 11:53 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

The first thing you need to do is to use a superkey instead of an autonumber primary key.

A superkey is a combination of various data elements that will be the same no mater where the data is first entered. For example, if the database is being used to enter customer orders in the field, the superkey might be a combination of the salesperson's name, the customer name or number, the date of the order, AND an autonumber field (in case the sales person has many orders from the same customer.)

Then to uplaod this new data, create a find unmatched query that uses the superkey field, and then do an append query for all records that don't have matches.

You can make this process fully automated, or have the salesperson, in this case, start the process and approve each transaction.

Need more help?


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating a database with new records modified cont bright_mulenga Access 0 January 18th, 2007 10:59 AM
Updating a database with new records modified bright_mulenga Access 1 January 18th, 2007 08:39 AM
problem in updating records & finding records naveed77 VB Databases Basics 1 January 16th, 2007 12:12 PM
problem in updating records & finding records naveed77 VB How-To 1 January 16th, 2007 12:10 PM
Updating database records in ASP/ADO aismail3 Classic ASP Databases 5 September 16th, 2004 11:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.