473,803 Members | 4,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking to an Excel File

119 New Member
hi there,

This should be a very quick question to resolve. I have linked to an excel spreadsheet from Access for the first time. My understanding was that whenever a change occurs in the spreadsheet the change should be reflected in Access more or less straight away.

However, I find that the only way to update the data in Access is to save the Excel sheet and then 'refresh all' in Access. Is this correct? I need live data in Access, and so having to save a spreadsheet every few minutes isn't really ideal.

Thanks,
Nov 30 '06 #1
2 1968
NeoPa
32,579 Recognized Expert Moderator MVP
hi there,

This should be a very quick question to resolve. I have linked to an excel spreadsheet from Access for the first time. My understanding was that whenever a change occurs in the spreadsheet the change should be reflected in Access more or less straight away.

However, I find that the only way to update the data in Access is to save the Excel sheet and then 'refresh all' in Access. Is this correct? I need live data in Access, and so having to save a spreadsheet every few minutes isn't really ideal.

Thanks,
Bear in mind that Access links to an Excel file.
When you edit a spreadsheet in Excel you don't make any changes to the file until you save it, so nothing will be accessible to Access at that stage.
I would guess from your remarks that Access treats an Excel link like a Snapshot query rather than like a Dynaset.
You would need to Requery to get data updated by a third party (IE. You editing the file with Excel).
Essentially you can't have what you need. That's not how it's been programmed :(.
Dec 1 '06 #2
billelev
119 New Member
Thanks for the reply. I guess I'll have to put up with saving the sheet when I need updated data.
Dec 1 '06 #3

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

Similar topics

1
3766
by: c duden | last post by:
Excel won't allow documents to be linked to a worksheet in office 2000 when using C# to create an add-in. The following code snippets are what was used in the attempts (there are more permutations of parameters, but for brevity...): // one - based on code from Matt Reynolds' website Excel.Worksheet active = (Excel.Worksheet)excelApp.ActiveWorkbook.ActiveSheet; ((Excel.OLEObjects)active.OLEObjects(Type.Missing)).Add(
0
1871
by: rivka.howley | last post by:
I'm using Access 2003 and Excel 2003. All I'm trying to do is bring a sheet from an Excel file (defined by the user) into Access as a table, I dont care if it's linked or imported. However, I get an error: "Run time error 3170. Could not find installable ISAM." I am able to import and link Excel tables using the Access menu. Here is the part of my code that's causing the error: Set db = CurrentDb 'Get file name
3
2728
by: ruthboaz | last post by:
Can I link a table and a excel file during runtime? Or is there a way to refresh the table which is linked to a table, to pick up the latest changes in the excel file and to update the linked table? With the update query the first time changes in the excel is reflecting the linked table. The linked table I had created from the file menu. There is a need for frequent updates. Pls assist.
6
1846
by: oyk | last post by:
I hope someone could help me on this. I have linked an excel worksheet to access but the some data shown in the access table has the #Num errors. Presumably, this must be because the data in the particular column in excel are of mixed data-type. For example, there are numbers as well as texts like "abcd" etc. in the same columns I tried changing the cell format in excel to text but to no avail as the problem still exist. Really need...
2
2098
by: Andrew W | last post by:
Hi All, I'm trying to link to data on a website with Access. When I try File/ Get External Data/ link tables/ HTML/, I get the following error message: Database or object is read-only. I find this odd because I can get this data thru Excel's web query function.
0
1916
by: Sajit | last post by:
I am trying to use an Excel file as a template for an Access report. I Linked the Excel file through an unbound frame as an OLE object with the properties set as follows: Source Doc : C:\sajit\test.xls
0
1159
by: harini | last post by:
Hi, I am working on excel VBA and i have a control on my excel sheet say a command button. Now when i click on the command button i shud be able to generate a state web page written using html VBScript. i have my html code in a seperate file. My ques here is how do i link the html file to the control i am using in my excel sheet using excel VBA??? Pls suggest! Thanks!
1
1319
by: karthik28 | last post by:
I tried linking an excel spreadsheet to an access database. It shows me a window with the data but the header row in missing. However, when I open the excel file, save it without making any changes and try linking it again, it works fine. Please suggest a solution so that I dont have keep saving the excel file before linking it. Thanks KS
0
2411
by: hivdb2 | last post by:
Hi all, I have an app developed in Access 2000/2003 (2000 compatible). I have a routine to refresh table links. Both files are MDB files (the front end and back end). The code I use is as follows: DoCmd.TransferDatabase acLink, "Microsoft Access", datafile, acForm, table, table datafile = "c:\mydir\mybackend.mdb" The file that contains the code is c:\mydir\myfrontent.mdb
1
2329
by: agarwasa2008 | last post by:
Hi, I have a perfect file called "Products.xls" that I link to my MS Access 2003 database and everytthing looks good in that file. When I view the same file after linking in my database the data values of records in "tblProducts" are incorrect. For example the tblProducts has a field called "PackageSize" as listed below. THe problem is that it displays the text correctly but if the field has numbers only it messes it up. I have set...
0
9699
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10068
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9119
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7600
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6840
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4274
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
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.