Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Pivot Table connected to an Access Database Data Source | Excel Discussion (Misc queries) | |||
Converting Excel spreadsheet with formulae to Access database | Excel Discussion (Misc queries) | |||
Make an Access Database out of Excel spreadsheet | New Users to Excel | |||
Database connected Excel sheet on Web | Excel Programming | |||
Inserting an Access database into a spreadsheet? | Excel Programming |