Results 1 to 7 of 7
  1. #1
    perryc is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2019
    Posts
    122

    Post Network being extremely slow

    MSAccess Database Experts,

    I put the database backend in the network drive while frontend on local HDD. Lately our network overall has been unbearably slow, do anyone have any experience on how to make it faster?

    Would sharing the Backend to other users help instead of leaving it on the network drive? If so, how should other user's frontend be linked? Do I create a FE that link to the BE path that was shared? I don't even know if this will work.

    p.s.: BTW, the BE is ~15MB size. I don't think it is that bad. I have compacted it ~every month and it does not really help much regarding loading time or refresh time.

    Thanks in advance.



    Sincerely,
    Perry

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  3. #3
    perryc is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2019
    Posts
    122
    Ty so much for the tips. Just to clarify, where should these codes reside? In the FE or BE? And exactly where? In a Module?



    To create a persistent connection to the linked database, open a MS Access database variable in VBA using the DAO OpenDatabase method. Keep this variable open as long as your application is running.
    Procedure Code

    The procedure below supports multiple backend databases. Edit the section with the list of databases to match your backend database(s):
    Sub OpenAllDatabases(pfInit As Boolean)
    ' Open a handle to all databases and keep it open during the entire time the application runs.
    ' Params : pfInit TRUE to initialize (call when application starts)
    ' FALSE to close (call when application ends)
    ' Source :
    Total Visual SourceBook

    Dim x As Integer
    Dim strName As String
    Dim strMsg As String

    ' Maximum number of back end databases to link
    Const cintMaxDatabases As Integer = 2

    ' List of databases kept in a static array so we can close them later
    Static dbsOpen() As DAO.Database

    If pfInit Then
    ReDim dbsOpen(1 To cintMaxDatabases)
    For x = 1 To cintMaxDatabases
    ' Specify your back end databases
    Select Case x
    Case 1:
    strName = "H:\folder\Backend1.mdb"
    Case 2:
    strName = "H:\folder\Backend2.mdb"
    End Select
    strMsg = ""

    On Error Resume Next
    Set dbsOpen(x) = OpenDatabase(strName)
    If Err.Number > 0 Then
    strMsg = "Trouble opening database: " & strName & vbCrLf & _
    "Make sure the drive is available." & vbCrLf & _
    "Error: " & Err.Description & " (" & Err.Number & ")"
    End If

    On Error GoTo 0
    If strMsg <> "" Then
    MsgBox strMsg
    Exit For
    End If
    Next x
    Else
    On Error Resume Next
    For x = 1 To cintMaxDatabases
    dbsOpen(x).Close
    Next x
    End If
    End Sub

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Think about it?
    What good is the code in the BE, if that is what you are trying to connect to?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    perryc is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2019
    Posts
    122
    Thank you all for trying to help. Welshgasman, I see your point!!

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Just in case. I worked at one place where we had a server and 5 PCs. the server was actually on the floor against my desk.
    Network was painfully slow?

    Why, it turns out all our traffic was being routed to Coventry where the Building Society was, and then back to Birrmingham where we were located.

    One the network people sorted that, it was as fast as one would expect.

    Not saying this is the cause, but sometimes the problems are out of your domain?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Connecting to SQL Server from Windows 7 extremely slow
    By justinmregan87 in forum SQL Server
    Replies: 1
    Last Post: 07-22-2015, 12:59 PM
  2. Query Runs Extremely Slow
    By eagerlearner in forum Queries
    Replies: 1
    Last Post: 10-30-2014, 06:44 AM
  3. SLow on a network
    By byterbit in forum Access
    Replies: 1
    Last Post: 10-09-2014, 11:02 AM
  4. Slow over network
    By cbende2 in forum Access
    Replies: 5
    Last Post: 07-31-2014, 01:09 PM
  5. Date() in query runs extremely slow on Windows 7
    By TagYoureIt in forum Access
    Replies: 4
    Last Post: 03-20-2013, 01:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums