Solved

update records with import process

Posted on 2012-04-12
2
220 Views
Last Modified: 2012-04-12
hello,
i am attaching database example and excel sheet.
If you open database and click [import DATA] button on form.
Browse to the excel sheet- and the data is imported into tblOne successfully.

Is there a way to modify this code - When data is imported in tblOne -It only Updates records that have same AutoNum?
( does not import records that have null value in AutoNum field or have AutoNum that does not match).


Thank you
Import-Data-E-.accdb
tblOne.xlsx
0
Comment
Question by:davetough
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
Comment Utility
you need to import the new records to a temp table, then
run an update query  with your criteria using the temp table as source
 and
run an append query  with your criteria
0
 

Author Closing Comment

by:davetough
Comment Utility
thanks cap
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now