473,387 Members | 1,899 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,387 software developers and data experts.

How do I export Access Table to a linked Excel spreadsheet?

I successfully linked an Excel file into my Access database and using an Update query pull in information to my Quote log table. That works fine. Now I am trying to go the other direction, and use information from my Quote log table in Access to update a different Excel spreadsheet. I created an Update Query using the Access table as my source data (some of it's field) and selected the corresponding Excel fields. It doesn't work though, keeps giving me an error. "Cannot update '(expression)'; field not updateable.

The Excel file I am trying to export to I linked within Access. Can anyone offer some suggestions on how to do this correctly?

Thanks for the help.
D-
Jul 25 '11 #1

✓ answered by nico5038

I normally use the docmd.transferspreadsheet command to create a (new) excel workbook with the data.

Idea ?

Nic;o)

5 2672
nico5038
3,080 Expert 2GB
I normally use the docmd.transferspreadsheet command to create a (new) excel workbook with the data.

Idea ?

Nic;o)
Jul 25 '11 #2
Rabbit
12,516 Expert Mod 8TB
We would need to see your SQL to be able to offer any assistance.
Jul 25 '11 #3
Nico
Thanks. I'm very much a novice at the programming stuff but I'll try the transferspreadsheet command.
Jul 25 '11 #4
NeoPa
32,556 Expert Mod 16PB
It's also very possible to write data to a linked worksheet from Access. Of course we'd need more detailed information to help with that. TransferSpreadsheet can also be used very successfully, and possibly even more easily, so try that first. You may find that easier and it releases the link after the task is completed too, so will probably give you less issues to deal with.
Jul 26 '11 #5
nico5038
3,080 Expert 2GB
Hi Daryl,

Just let us know when you have trouble with the code.
The command is however rather easy to use and by adding the code to the OnClick event of an Export button it just requires one line of code.

Success!

Nic;o)
Jul 26 '11 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: James Bird | last post by:
Hello In order to perform a hetrogeneous join (I think that's what they're called) between MySQL and another database, I've created an Access database containing linked tables from each...
7
by: Keon | last post by:
Hoi, I'm using a database with alot of records in 1 table (more than 3000). If i want to export this table to excel i only get it till record 2385. Do someone know how i can solve this...
3
by: bwhite | last post by:
I have a temp table with one row of data that I need to export into Excel. I created the export to create the xls file as follows ... Dim FileName FileName = !! DoCmd.SetWarnings False...
3
by: sam | last post by:
Can you teach me how to export access file to excel file in VB.net? Thank in advance.
2
by: nofear | last post by:
I used to export my reports as snapshot but now I have to export them to Excel When I export my report to a Excel Spreadsheet the report header and footer are not included Only the data gets...
7
by: tasmontique | last post by:
Hi All, I have finally succeeded in exporting to a preformated excel spreadsheet. I have one tiny setback. One of the sheets I am exporting to must be password protected. When I do this and...
3
by: Shailesh Patel | last post by:
Hi, How do I export Html table to excel file? Thank you in advance. Shailesh
6
by: gmujjain4902 | last post by:
Hi, Please help me with code for to Export HTML table to Excel sheet using javascript without using ActiveX controls... The problem is i could get solution for my problem via ActiveX control...
0
by: JFKJr | last post by:
Hello everyone! I am trying to export Access table data into Excel file in such a way that the table field names should be in the first line of each column in excel file followed by field data, and...
7
by: franc sutherland | last post by:
Hi everyone, I am using Access 2003. I have a database with a table in it which is linked to an excel spreadsheet. When I install the database on someone else's system, the pathname to the...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...

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.