Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default compact MS Access while list box connected to database in spreadsheet

hi,
im using listboxes in my spreadsheet to show data (using ADO) saved in
access database..listbox updates on open_ excel event...
on the same spreadsheet i have a routin to compact that database which
i'm retriving dates from ..
it seems that the spreadsheet keeps the connection with database ( .ldb
file is on) which prevents the routine to compact database.. with err
message that admin has that db opened..

any help or direction to solve the issue?
thanks
Dim

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default compact MS Access while list box connected to database in spreadsheet

Dim,

You need to use a disconnected recordset at the client by the sounds of it.

Immediately after you load a recordset it should be as easy as

Set rsTables.ActiveConnection = Nothing

You can still make changes to the recordset at the client, re-establish a
connection, use UpdateBatch, etc., but if you do this, make sure you reload
the recordset from the db again afterwards.

Robin Hammond
www.enhanceddatasystems.com

wrote in message
ups.com...
hi,
im using listboxes in my spreadsheet to show data (using ADO) saved in
access database..listbox updates on open_ excel event...
on the same spreadsheet i have a routin to compact that database which
i'm retriving dates from ..
it seems that the spreadsheet keeps the connection with database ( .ldb
file is on) which prevents the routine to compact database.. with err
message that admin has that db opened..

any help or direction to solve the issue?
thanks
Dim



Reply
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
Excel Pivot Table connected to an Access Database Data Source Alex Zimmerhaven Excel Discussion (Misc queries) 2 June 10th 08 03:04 AM
Converting Excel spreadsheet with formulae to Access database AndyL82 Excel Discussion (Misc queries) 1 February 3rd 07 06:53 PM
Make an Access Database out of Excel spreadsheet ahmebah New Users to Excel 0 February 11th 05 02:45 PM
Database connected Excel sheet on Web Amit Bhavsar Excel Programming 0 December 3rd 04 04:54 PM
Inserting an Access database into a spreadsheet? q Excel Programming 0 May 3rd 04 07:46 PM


All times are GMT +1. The time now is 02:25 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"