Solved

update records with import process

Posted on 2012-04-12
2
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 37839593
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
ID: 37839741
thanks cap
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

717 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