LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 593
Default HELP: Access table linked to Excel - calculated fields?

Gorb <no.spam@tached wrote ...

I linked an Access table to a complex Excel spreadsheet (.xls). I also
built a custom Access form to browse and modify the data in that
table. Works fine, however the worksheet also has numerous calculated
cells (with formulas), and these formulas have no effect while I am
using the form. The only way to correctly update these cells is to
close my Access application, open the spreadsheet in Excel and save
it, which is a hardly acceptable process.

Is there a way for those formulas to update the corresponding cells
automatically, without having to close Access and open the sheet?


Well, I don't see that you'd have to close MS Access, just release
your connection/locks to the workbook. But, yes, the only way to
recalculate the formulas is to open the workbook in the Excel app and
trigger calculation from there. You could do this in an invisible
instance of Excel using automation from your MS Access app.

Jamie.


I see. Thank you for the info, Jamie. While I've seen many posts
related to opening/closing Excel app from within Access, I don't quite
understand how I could drop my linked table and then recreate it
programmatically (if this is the only way...) Any suggestions or code
examples?

TIA!


Here's a MSDN link for you:

http://support.microsoft.com/default...b;en-us;240222
How To Use ADO to Refresh/Create Linked Table

I don't use linked tables very often myself, therefore I suggest you
post your request in one of the MS Access newsgroups for an
alternative perspective (at the very least you should get a link to
the equivalent *DAO* code <g).

Jamie.

--
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Access DB into Excel changes my calculated fields in Exc Shadow27_us Excel Worksheet Functions 3 January 7th 10 10:10 PM
Excel 2007 - Pivot Table and Calculated fields? Wanda Excel Worksheet Functions 1 June 17th 09 04:33 AM
Excel 2000 Pivot Table Calculated Fields GreyPilgrim Excel Discussion (Misc queries) 0 March 28th 06 11:07 AM
HELP: Access table linked to Excel - calculated fields? K Zox Excel Worksheet Functions 3 November 12th 04 08:18 AM
Pivot Table in Excel 2002 XP - Calculated Fields John Flynn[_2_] Excel Programming 1 February 12th 04 10:41 PM


All times are GMT +1. The time now is 12:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"