473,396 Members | 2,068 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,396 software developers and data experts.

Transfer from Access to Excel

Hey fella's,

I have a table with an Id and LineId in Access. I have these Id's also
in
an Excel sheet. Is it possible to find the Id's in the Excel sheet
corresponding from Acces and then adapt the values which belong to the
Id's.

Thanks in advance.

Exmpl:

Access Excel
******* ******
ID LineID AM ID LineID AM
--- ------ --- --- ------- ---
150 1501 200 150 1501 100 (change to 200!!)
150 1502 450 150 1502 100 (change to 450!!)
150 1503 640 150 1503 300 (change to 640!!)
151 1511 700 151 1511 400 (change to 700!!)
152 1521 720 152 1521 600 (change to 720!!)
152 1522 900 152 1522 400 (change to 900!!)
Nov 13 '05 #1
1 1669
an*******@hotmail.com (@ndy) wrote:
Hey fella's,

I have a table with an Id and LineId in Access. I have these Id's also
in
an Excel sheet. Is it possible to find the Id's in the Excel sheet
corresponding from Acces and then adapt the values which belong to the
Id's.

Thanks in advance.

Exmpl:

Access Excel
******* ******
ID LineID AM ID LineID AM
--- ------ --- --- ------- ---
150 1501 200 150 1501 100 (change to 200!!)
150 1502 450 150 1502 100 (change to 450!!)
150 1503 640 150 1503 300 (change to 640!!)
151 1511 700 151 1511 400 (change to 700!!)
152 1521 720 152 1521 600 (change to 720!!)
152 1522 900 152 1522 400 (change to 900!!)


Hi Andy.

Link to your Excel spreadsheet from your Access database, then include both
recordsets in a query and join them using the PKs (I'm assuming that's
'LineID'). Include both 'AM' fields in the query grid - this query will
then return records which are common to both recordsets.

Change to an 'update' query type and include the appropriate (source)
table/field name* in the 'Update to' box for the field you want to update.
Run the query.

I highly recommend that you back up your files first.

*Note that the source field should be referred to as [tblTable].[Field]
since, in the example you give, they both have the same field name.

HTH - Keith.
www.keithwilby.com
Nov 13 '05 #2

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

Similar topics

2
by: Andy Davis | last post by:
Has anybody tried and had any success exporting data directly from ACT! 2000 to an Access database? I need to transfer data from ACT! to Access, but the data is all imported as text, including date...
5
by: hmiller | last post by:
Hey there folks: I have been trying to get this work for about a week now. I'm new to VBA... I am trying to transfer a populated table in Access to an existing, but blank, Excel worksheet. I...
3
by: JohnM | last post by:
I can transfer from a query with DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "Filenam", CPath, True I would like to use a form for the user to select and order data then...
0
by: blainegray | last post by:
Greetings This is one of those Access is not closing Excel problems. The first time through the code works fine. The second time there is a problem. After lots of combinations, I finally...
1
by: is49460 | last post by:
Good afternoon! I use transfer spreadsheet function the export data from one of the table into the excel spreat sheet. I use the following code: DoCmd.TransferSpreadsheet acExport, 8, "qry...
5
by: billa856 | last post by:
Hi I am totaly new to MS Access. I have one worksheet in excel in which I have data of company's inventory. I want to know can I transfer data from a form made in MS Access to the Excel worksheet?...
3
by: yaaara | last post by:
Hi Guys, Need another help pls.. I got a query in Access (I have coded it in VBA as well) which returns me some data based on a calculation. The number of columns of the query change according...
6
by: JFKJr | last post by:
Hello everyone, the following is the Access VBA code which opens an excel spreadsheet and creates combo boxes dynamically. And whenever a user selects a value in a combo box, I am trying to pass...
2
by: shalskedar | last post by:
In the excel sheet attached below can the particular data b transfered to Access. The data is more of the dimensions data i.e the tabular data in the sheet has to go to Access...Based on the data...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.