473,569 Members | 2,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Appending Access records to end of an Excel file

I store comprehensive details of customers' "transactio ns" in Access
(2000). At the moment, I (or my staff) duplicate entry of the
information in an Excel spreadsheet which we use to extract stats and
charts and to number crunch etc.
Obviously, duplicating the data entry is onerous and open to error.
What I'd like to do is enter the data into the Access database then use
a query to compile a recordset of the latest set of records and then
append them to the end of the Excel file using VB.
I've found VBA code in various forums to create a new Excel workbook
and populate it with records from Access, but nothing on appending new
records to the bottom of an existing spreadsheet.
Any pointers would be greatly appreciated. If required, I could post
cut-down versions of the database and spreadsheet but it would need
some work because of customer (actually, patient) confidentiality .

Thanks in advance.

Jules

Jul 15 '06 #1
4 6050
if you link to the table, it exports just the way you want. Just link
to the Excel table, and create an append query to add the new data.

Jul 16 '06 #2
pi********@hotm ail.com wrote:
if you link to the table, it exports just the way you want. Just link
to the Excel table, and create an append query to add the new data.
Thanks for that - I'll work on it.

The Access data is stored in a number of related tables. So, first
link to the Excel spreadsheet, then use an append query to pull
together from the separate tables the fields to be appended to the
spreadsheet, run the append query and it should add the records to the
linked spreadsheet - just thinking "out loud" - I'll go and "have a
play" with it.

Thanks again!

Jules

Jul 16 '06 #3
Jules,

Link to your spreadsheet in the same manner you link to an
Access Table. Just pick the File Type of Excel and browse to your
Excel file. One nice thing is that you can select any one of the
Worksheets in your Excel file to link to. I often have two links to
two different Worksheet pages.

Then you can treat it just like a table and do an INSERT to
append your data. I've never do anything but append to the bottom of
the Worksheet. There may be a way to be cell specific.

Hank Reed

Jul 16 '06 #4

Hank wrote:
Jules,

Link to your spreadsheet in the same manner you link to an
Access Table. Just pick the File Type of Excel and browse to your
Excel file. One nice thing is that you can select any one of the
Worksheets in your Excel file to link to. I often have two links to
two different Worksheet pages.

Then you can treat it just like a table and do an INSERT to
append your data. I've never do anything but append to the bottom of
the Worksheet. There may be a way to be cell specific.

Hank Reed
Thanks Hank, Gonna give that a go as soon as I can (after doing a
backup of my DB, of course!)

Thanks a lot Guys.

Jul 16 '06 #5

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

Similar topics

5
11680
by: jsudo | last post by:
I have a Access database with a large amount of records (close to 500,000) that I would like to export to Excel. I found out that Excel has the capability of of about 65,000 rows so I know I cannot export the whole file at once. What I would like to do is divide the database records into smaller groups that Excel can handle. Does anyone...
9
12324
by: Pete | last post by:
Does anyone have a simple html vbscript or other type of snippet they can share that appends a record to a access database via ADO or DAO? I would like to allow users that don't have Microsoft Access a way of adding records to a access database from a simple web page. I don't want to have to setup ODBC or anything like that I just want to put...
3
9590
by: kylei | last post by:
When I try to append one table to another with the exact same field names I get an error... Microsoft Access was unable to append all the data to the table. The contents of fields in 0 record(s) were deleted, and 0 record(s) were lost due to key violations. *If data was deleted, the data you pasted or imported doesn't match the field...
3
25032
by: Mads Petersen | last post by:
I'm stuck in this code. Hope you can and will help me. I launch it from excel. I have made the following code work, but not as i whant. I need the ranges to be working with something like xlDown. eg. this only transferes the first record in the area. ..Fields("Uge").Value = ws.Range("A98").Value Sub SelectMaster()
5
3159
by: hharriel | last post by:
Hi, I am hoping someone can help me with an issue I am having with excel and ms access. I have collected data (which are in individual excel files) from 49 different school districts. All districts have used the same excel template and populated the same 32 data fields (columns). I created one large excel file from all 49 files which gives...
4
2963
by: BFoxDDS | last post by:
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...
5
5175
by: Hokiecow | last post by:
I'm trying to import specific columns from an excel file (Requirements.xls) into an access table (tblRequirements). Using VBA, I'm able to import the entire excel file into table (tblImportRequirements). Instead of going row by row of (tblImportRequirements) and copying the fields needs to (tblRequirements) it would be faster to just copy...
8
11072
by: Irene | last post by:
Hi, I have an MS Access Database with 1 Table containing about 2 million records in Unicode (diferent languages). I would like to export the Table to a Text file (CSV, Tab, etc.) Access dows only export about 65,000 at 1 time. Almost an imposible job.
3
8819
by: khoward | last post by:
Hi, I have an Access 2007 database that contains customer contact information. There are over 8,000 that include name, organization (as a look-up column), email, phone, address, and events that each person should be invited to (also a look-up column). Separate from this is an Excel spreadsheet that contains the some of the same information,...
0
7698
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7970
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.