473,382 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

excel/access assistance

i'm sure this is simple to do, but i can't find the answer in the
search engines.

i have an access db with 400,000 records. i produce queries of 5,000
records at a time exported into an excel file. sometimes people will
update items in the excel file, send it back to me in the exact format
i sent it, and i just do an update to the saved query in the db with
the new info.

this time, the file i sent had 3,500 records, and instead of keeping
all the rows in the excel file, the person updated certain rows and
removed the rest - so now i have 500 records.

how do a take this excel file of 500 records and auto-match them up to
my 400,000 db records and update (copy over) with the new info from
excel?

thank you.

Nov 10 '06 #1
4 2944
Did you export your unique identifier to the excel file? If not, I
would suggest that you do so from now on. That identifier is what you
would use to do your updating via an Update Query. There really is not
a good way to update your records without that ID field.


BFoxDDS wrote:
i'm sure this is simple to do, but i can't find the answer in the
search engines.

i have an access db with 400,000 records. i produce queries of 5,000
records at a time exported into an excel file. sometimes people will
update items in the excel file, send it back to me in the exact format
i sent it, and i just do an update to the saved query in the db with
the new info.

this time, the file i sent had 3,500 records, and instead of keeping
all the rows in the excel file, the person updated certain rows and
removed the rest - so now i have 500 records.

how do a take this excel file of 500 records and auto-match them up to
my 400,000 db records and update (copy over) with the new info from
excel?

thank you.
Nov 10 '06 #2
yes, i did export the id file. problem is, i don't know how to take
records 32, 48, 55, 102, 210, etc. and auto-update only those select
ones in access.

Jeff L wrote:
Did you export your unique identifier to the excel file? If not, I
would suggest that you do so from now on. That identifier is what you
would use to do your updating via an Update Query. There really is not
a good way to update your records without that ID field.
Nov 10 '06 #3
You create an update query. You need to import the excel spreadsheet
into Access first. For simplicity I'm calling it NewData. Then create
an update query using and the table you want to update (MainData).
Join the ID fields in MainData and NewData. Now select the fields you
want to update from MainData and in the Update To row, put
[NewData].[FieldName], where FieldName is the actual name of the field
from NewData. Run your query.

You might want to make a backup of MainData, just in case.

Hope that helps!
BFoxDDS wrote:
yes, i did export the id file. problem is, i don't know how to take
records 32, 48, 55, 102, 210, etc. and auto-update only those select
ones in access.

Jeff L wrote:
Did you export your unique identifier to the excel file? If not, I
would suggest that you do so from now on. That identifier is what you
would use to do your updating via an Update Query. There really is not
a good way to update your records without that ID field.
Nov 10 '06 #4

BFoxDDS wrote:
yes, i did export the id file. problem is, i don't know how to take
records 32, 48, 55, 102, 210, etc. and auto-update only those select
ones in access.

Jeff L wrote:
Did you export your unique identifier to the excel file? If not, I
would suggest that you do so from now on. That identifier is what you
would use to do your updating via an Update Query. There really is not
a good way to update your records without that ID field.
You could also import via VBA.

Open up the excel table as a recordset.
Step through each record.
With each record execute a SQL statement to update the data.

Keith

Nov 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: jimserac | last post by:
I had previously posted this in an Access forum with negative results so will try here. Although this question specifies an Access database, I also wish to accomplish this with a large MS SQL...
1
by: Steven Stewart | last post by:
I have a user who has been using Excel for a while to keep statistics and print reports. She finds using it cumbersome because of long formulas and a lot of copying and pasting. I have designed...
1
by: Steve Spittell | last post by:
Need some assistance, I am trying to take recordset from Access that contains Names; Name1 Name2 Name3 Name4, etc Open up an Excel Workbook and Create New Worksheets based on the names in...
9
by: hari krishna | last post by:
hi, I want to send the data from dataset information to Excel through ASP.Net. there will be no XL installed on web server. web server is win 2000 server machine. I am using visual basic code in...
1
by: Jim Heavey | last post by:
Hello, I am using a generic AD Domain Account to create an excel spreadsheet, but I am getting an "Access Denied" error when I attempt to instatiate the excel object. The generic account does is...
19
by: wreckingcru | last post by:
I'm trying to output a SQL query that is constructed thru my VB.net GUI into an excel file. Here is the code I'm using: 'Sqlstmt is the SQL query statement 'Conn is the SQL Connection object...
6
by: james.igoe | last post by:
I've been hired to produce a reporting database that takes data from numerous sources (5 financial products, from three regions, each with multiple tabs) and although I'm confident I can build...
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
1
by: afr0ninja | last post by:
Hello! I'm having an issue with the OutputTo function of Access. I have a few queries that I export to excel (by way of the OutputTo function) This works fine. I then take an excel sheet...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.