Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 27th, 2007, 05:25 PM
Michael
Guest
 
Posts: n/a
Default 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?

  #2  
Old February 27th, 2007, 06:25 PM
Albert D. Kallal
Guest
 
Posts: n/a
Default Re: Slow code execution in Access 2007

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
pleaseNOOSpamKallal@msn.com


"Michael" <mmatuszak@comcast.netwrote in message
news:1172596483.894617.213520@m58g2000cwm.googlegr oups.com...
Quote:
>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?
>

  #3  
Old February 27th, 2007, 06:35 PM
Michael
Guest
 
Posts: n/a
Default Re: Slow code execution in Access 2007

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:
Quote:
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
>
>
  #4  
Old February 27th, 2007, 06:45 PM
Albert D. Kallal
Guest
 
Posts: n/a
Default Re: Slow code execution in Access 2007

"Michael" <mmatuszak@comcast.netwrote in message
news:1172600623.214532.254470@j27g2000cwj.googlegr oups.com...
Quote:
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
pleaseNOOSpamKallal@msn.com


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles