access extremely slow when in design view

smithrd6

Board Regular
Joined
Dec 13, 2005
Messages
150
Just when I thought everything was going along fine, things have slowed to a crawl. Access is extremely slow to respond when making changes in design view for anything from forms, reports....task manager indicates "not responding".....until a great deal of waiting!

any idea's why this has begun?

thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
A couple of things can cause slow performance in Access.

Go into Tools | Options and, if Name Autocorrect is on, turn it OFF. It's been known to cause database corruption, and will slow you down.
Also, Compact and Repair the database.
Thirdly, if you haven't split the database into a front end and back end (there's a wizard: Tools | Database Utilities | Split Database), do so. It won't necessarily improve performance in a single-user system but it is essential in multi-user setups, and it separates the data (back end) from the logic (front end). Good insurance.

Denis
 
Upvote 0
I have chased this problem for years and finally found the cause and the solution.

MS Access is a little like OneDrive where it boggs when syncing to too much data. MS Access it is syncing to every table linked to the application and that is why it runs slow.

If you save off a copy and delete most of your linked tables, the speed with radically improve. Ok, that proves the problem, but not the solution...

The solution involves creating a table of table names and connection strings, then you dynamically add or remove table links that you do or do not need. (code sample below)

I have a button on the main form called “Remove Add On Demand Tables” This deletes tables not needed at program launch. I run this when I start coding so it runs quickly.

All other linked tables are added using VBA code as the user enters one module or the next.

It's a pain at first, to code it all out, but a couple functions later and it works under the hood without anyone being the wiser.

BTW, the same code can be ran to ensure your connection to SharePoint has not converted to Offline mode.

Here's some sample code to get you started.

Sub UpdateSharePointOnlineConnection()
' Specify the name of the linked SharePoint list
Dim linkedTableName As String
linkedTableName = "YourLinkedTableName"

' Specify the SharePoint Online site URL
Dim sharePointURL As String
sharePointURL = "https://your-sharepoint-site-url.com"

' Build the new connection string
Dim newConnectionString As String
newConnectionString = "ODBC;DRIVER=Microsoft SharePoint List " & _
"Driver; " & _
"SHAREPOINT; " & _
"LIST=" & linkedTableName & "; " & _
"STUBNAME=LIST_" & linkedTableName & "; " & _
"DATABASE=" & sharePointURL & ";"

' Update the connection string for the linked table
Dim db As DAO.Database
Set db = CurrentDb
db.TableDefs(linkedTableName).Connect = newConnectionString
db.TableDefs(linkedTableName).RefreshLink

' Release the database object
Set db = Nothing
End Sub
 
Upvote 0
Better late than never? Besides, it took Mike years to find that solution so we had to wait. :)
 
Upvote 0

Forum statistics

Threads
1,221,489
Messages
6,160,129
Members
451,621
Latest member
roccanet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top