Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Accessing external database causing problems?

I have a spreadsheet that accesses an external database (MS Access).
Every once in a while after the file is closed and re-opened, I get a
message that "file.xls" is currently locked for editing (by me). I'm
not sure why this occurs. I'm guessing that the connection to the
external database is the culprit if it is not properly closed. If this
is the case, what can I do to ensure the connection is closed each
time, especially if my code crashes?

I can easily work around this issue by creating a copy of of the file,
which I'd rather not do in the event I work out all of the bugs and let
others use this application.

Any ideas?

Thanks,
Mike.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Accessing external database causing problems?

Make sure the backgroundquery property is set to false would be my guess.

--
Regards,
Tom Ogilvy


"Michael Malinsky" wrote in message
oups.com...
I have a spreadsheet that accesses an external database (MS Access).
Every once in a while after the file is closed and re-opened, I get a
message that "file.xls" is currently locked for editing (by me). I'm
not sure why this occurs. I'm guessing that the connection to the
external database is the culprit if it is not properly closed. If this
is the case, what can I do to ensure the connection is closed each
time, especially if my code crashes?

I can easily work around this issue by creating a copy of of the file,
which I'd rather not do in the event I work out all of the bugs and let
others use this application.

Any ideas?

Thanks,
Mike.



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
Special Characters causing problems Vickie Excel Discussion (Misc queries) 1 November 25th 08 09:42 PM
my personal.xls file is causing problems Chrisinct Excel Discussion (Misc queries) 3 December 7th 06 03:28 PM
Rand () causing Problems. JCary Excel Discussion (Misc queries) 1 March 6th 06 10:38 PM
javascript causing web query problems TonyH. Excel Programming 2 November 3rd 05 05:11 AM
Addins causing problems Andrew- Excel Programming 6 June 30th 05 07:25 PM


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