Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel freeze when ran from server drive

Hello Everyone:

Good day and best regards.

I work from a shared server drive "eg: Shared on 'Company\Public (G:)". In
this folder there are two files, one Access mdb the other Excel with macros.
The mdb is to store the thousands of records. The Excel file would have to
extract selected records from the mdb for graphing.

When I ran the Excel file copied and stored in my own computer say C: drive,
importing the mdb info, the macros ran as intended. This is the case
regardless if the mdb was in the server or not.

But if the Excel file were in the server G: drive, the Excel freeze (not
running) on me.

How do I be able to run the Excel from the G:?

Thanks for your support.

Zimme


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel freeze when ran from server drive

Hello everyone:

Good day. Sorry I did not provide the codes in my last post. I have an
update finding.

Upon stepping through the codes, I found that the Excel freezes (not
responding as appeared in the window task lists) happened when I
€śwrkjet.OpenDatabase€ť from the (G:) network drive.

Could I open a network mdb file in the workspace created?

Thank you for your advice. The codes I used are as followed. It is a
modification from the discussions I found here. The DB and Server paths and
names are captured from previous sub.


Sub AppdData()

'enable DAO and ADO references


Dim dbs As database
Dim wrkjet As workspace
Dim fname As String
Dim sqlVS As String
Dim strDBPath As String
Dim strDBName As String
Dim strServerPath As String
Dim strServerName As String

fname = strDBPath + strDBName

Set wrkjet = CreateWorkspace("", "admin", "", dbUseJet)
Set dbs = wrkjet.OpenDatabase(fname, True)

sqlVS = "INSERT INTO efm_vs SELECT * FROM [" + strServerPath +
strServerName + "].EFM_VS;"

dbs.Execute sqlVS
dbs.Close

End Sub


Zimme



"Zimme" wrote:

Hello Everyone:

Good day and best regards.

I work from a shared server drive "eg: Shared on 'Company\Public (G:)". In
this folder there are two files, one Access mdb the other Excel with macros.
The mdb is to store the thousands of records. The Excel file would have to
extract selected records from the mdb for graphing.

When I ran the Excel file copied and stored in my own computer say C: drive,
importing the mdb info, the macros ran as intended. This is the case
regardless if the mdb was in the server or not.

But if the Excel file were in the server G: drive, the Excel freeze (not
running) on me.

How do I be able to run the Excel from the G:?

Thanks for your support.

Zimme


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
Unable to modify 2007 file on NAS server shared drive shyam joshi Excel Discussion (Misc queries) 0 August 16th 09 08:05 PM
How do I get the true path to server (not mapped drive letter)? John Excel Worksheet Functions 2 May 18th 06 09:48 PM
Identifying drive letter with Save-as to a server excelnut1954 Excel Programming 4 December 29th 05 05:59 PM
Use VBA to allow you to select a file name from a directory (public drive/server) turnerje[_2_] Excel Programming 2 September 27th 05 08:03 PM
Can I show server name instead of drive letter? bfant Excel Discussion (Misc queries) 9 February 17th 05 06:11 AM


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