473,416 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Slow code execution in Access 2007

I work with a highly programmed Access
database (some 15,000 lines of VBA code, much of it automating data
entry on forms -- and believe me, it's very tight code). In Access
97,
2000, 2002, and 2003, no performance problems. However, when I open
the same database in Access 2007, it's as slow as molasses. Data
trickles onto the form instead of an immediate display in Access
2003.
This happens regardless of whether I keep the Access 2002-2003 file
format or convert it to Access 2007. I have the recommended
1 GB RAM. I'm NOT using Office 2007 Beta. No missing references.

I'm beginning to notice more threads complaining of Office 2007
performance problems. Most often they seem to be tied to VBA code
execution. One example (for Excel 2007):
http://groups.google.com/group/micro...b163f9d22c9629

Any ideas?

Feb 27 '07 #1
3 9593
I not experianced a code slow down. You can test your code speed, and likey
ms-access can execute about 50 million instrucions in one second.

Public Sub test4444()

Dim lngMax As Long
Dim i As Long
Dim t As Double

lngMax = 80000000

t = Timer
For i = 1 To 80000000
Next i
t = Timer - t

MsgBox "time = " & t & vbCrLf & _
"loops per second = " & lngMax / t
End Sub
Try the above. I not really noticed a code speed change. The above loops to
80 million..and most pc's today will do that in less then 2 seconds.

Is a network involved? Have you tried using a mde...does that help?
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
"Michael" <mm*******@comcast.netwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
>I work with a highly programmed Access
database (some 15,000 lines of VBA code, much of it automating data
entry on forms -- and believe me, it's very tight code). In Access
97,
2000, 2002, and 2003, no performance problems. However, when I open
the same database in Access 2007, it's as slow as molasses. Data
trickles onto the form instead of an immediate display in Access
2003.
This happens regardless of whether I keep the Access 2002-2003 file
format or convert it to Access 2007. I have the recommended
1 GB RAM. I'm NOT using Office 2007 Beta. No missing references.

I'm beginning to notice more threads complaining of Office 2007
performance problems. Most often they seem to be tied to VBA code
execution. One example (for Excel 2007):
http://groups.google.com/group/micro...b163f9d22c9629

Any ideas?

Feb 27 '07 #2
If it's not code execution, what else could be slowing down the
display of data on the form? I'm well aware of things that commonly
slow down form display performance -- domain aggregate expressions in
the record source, the number of subforms, etc. But the only
difference here is the version of Access I use to open the database. I
won't attempt to test this on a network until it performs adequately
on a workstation.

By the way, I'm testing on a workstation that has never had Office
installed on it before, so there should be no complications from
multiple versions of Office.

On Feb 27, 12:10 pm, "Albert D. Kallal"
<PleaseNOOOsPAMmkal...@msn.comwrote:
I not experianced a code slow down. You can test your code speed, and likey
ms-access can execute about 50 million instrucions in one second.

Public Sub test4444()

Dim lngMax As Long
Dim i As Long
Dim t As Double

lngMax = 80000000

t = Timer
For i = 1 To 80000000
Next i
t = Timer - t

MsgBox "time = " & t & vbCrLf & _
"loops per second = " & lngMax / t

End Sub

Try the above. I not really noticed a code speed change. The above loops to
80 million..and most pc's today will do that in less then 2 seconds.

Is a network involved? Have you tried using a mde...does that help?

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKal...@msn.com

Feb 27 '07 #3
"Michael" <mm*******@comcast.netwrote in message
news:11**********************@j27g2000cwj.googlegr oups.com...
If it's not code execution, what else could be slowing down the
display of data on the form?
Well, it could be a number of things..including a slow down in data access,
or even the user interface is running slow for some reason.

I was just pointing out that code speed seems to be ok in my tests.

I not done enough testing in terms of other things (such as form load etc).
(and, my testing is being done on virtual pc right now).

So, these problems are not likely VBA code speed, but other issues.

I just plain don't have the experience yet to nail down what the issues are
as of yet...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
Feb 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Marc Mones | last post by:
Hello, I'working with IBM DB2 V8.1 and CLI/ODBC. I've got a problem with the following statement: ******************************************************************************** SELECT...
0
by: Brian Russell | last post by:
We have three servers (beyond my development box) in our organization. The first is a testing server that has IIS and SQL Server on it. The second is another testing server that also has IIS and...
6
by: MadMan2004 | last post by:
Hello all! I'm having a problem with a project I'm working on and I'd like to ask for anyone's input that might be helpful. I'm building a rather large front-end application connecting to an...
50
by: diffuser78 | last post by:
I have just started to learn python. Some said that its slow. Can somebody pin point the issue. Thans
9
by: Emin | last post by:
Dear Experts, I have a fairly simple query in which adding a where clause slows things down by at least a factor of 100. The following is the slow version of the query ...
3
by: Richard Hollenbeck | last post by:
I hope this isn't too confusing. The following query runs pretty fast by itself, but when I want to use it in a report (pasted below the query), it takes at least fifteen seconds to run! Then I...
1
by: Ted Kennedy | last post by:
I have an Access Data Project (.adp) connecting to a SQL Server 2005 DB over the internet. The project has been running in Access 2003 for a couple of years, and performance has been very good....
5
Ericks
by: Ericks | last post by:
So I developed this nice small database. 7.5 Mb is not exactly big. On Access 2003 it runs like a breeze. But on Access 2007 it seems to "run" slow motion. I decompiled and compiled it back on Access...
10
by: Arno R | last post by:
Hi all, So I bought a new laptop 10 days ago to test my apps with Vista. (home premium) Apparently Office 2007 is pre-installed. (a time limited but complete test version, no SP1) So I take the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.