473,395 Members | 1,537 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,395 software developers and data experts.

VB6 applications with Access DB slow

dev
Several years ago I developed an Access 97 runtime application. I
have rewritten this application using Visual Basic 6 with an Access
2003 database. When I run the VB application with the database on the
same PC, the performance is good. When I move the database to a
different PC on my two PC network, the performance is slow. This is
not the case with the original Access 97 application; it performs fast
regardless of where the database is located.

Does anyone have a idea of why the vb application performance would be
so much worse when the database in on a different PC? Any suggestions
would be appreciated.

Mar 1 '07 #1
2 4223

<de*@cornerstoneapplications.comwrote
Several years ago I developed an Access 97 runtime application. I
have rewritten this application using Visual Basic 6 with an Access
2003 database. When I run the VB application with the database on the
same PC, the performance is good. When I move the database to a
different PC on my two PC network, the performance is slow. This is
not the case with the original Access 97 application; it performs fast
regardless of where the database is located.

Does anyone have a idea of why the vb application performance would be
so much worse when the database in on a different PC? Any suggestions
would be appreciated.
Are you using ADO or DAO?

I ask because, if the former, someone else is going to have to try to help
because I am not familiar with ADO, ADODB, and OLEdb performance solutions;
but if the latter, then there are lots of documented "tricks" for Access
that can also apply to VB6... see MVP Tony Toews' site,
http://www.granite.ab.ca/accsmstr.htm for the Access version.

Keeping the database and a connection Open is the first "trick" to try.

The data control in VB does not work as smoothly as bound Forms in Access.
Most VB-with-database applications are implemented with unbound Forms.
Opening entire Tables or Queries with all the records from the underlying
Table does not enhance performance -- it's amazine how often most business
applications either need only one Record, if it exists, or none, if it
doesn't.

Larry Linson
Microsoft Access MVP
Mar 1 '07 #2
dev
On Feb 28, 8:02 pm, "Larry Linson" <boun...@localhost.notwrote:
<d...@cornerstoneapplications.comwrote
Several years ago I developed an Access 97 runtime application. I
have rewritten this application using Visual Basic 6 with an Access
2003 database. When I run the VB application with the database on the
same PC, the performance is good. When I move the database to a
different PC on my two PC network, the performance is slow. This is
not the case with the original Access 97 application; it performs fast
regardless of where the database is located.
Does anyone have a idea of why the vb application performance would be
so much worse when the database in on a different PC? Any suggestions
would be appreciated.

Are you using ADO or DAO?

I ask because, if the former, someone else is going to have to try to help
because I am not familiar with ADO, ADODB, and OLEdb performance solutions;
but if the latter, then there are lots of documented "tricks" for Access
that can also apply to VB6... see MVP Tony Toews' site,http://www.granite.ab.ca/accsmstr.htmfor the Access version.

Keeping the database and a connection Open is the first "trick" to try.

The data control in VB does not work as smoothly as bound Forms in Access.
Most VB-with-database applications are implemented with unbound Forms.
Opening entire Tables or Queries with all the records from the underlying
Table does not enhance performance -- it's amazine how often most business
applications either need only one Record, if it exists, or none, if it
doesn't.

Larry Linson
Microsoft Access MVP
Hi Larry,

I use ADO, especially ADO data controls.

Len

Mar 1 '07 #3

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

Similar topics

6
by: Terry Bell | last post by:
We've had a very large A97 app running fine for the last seven years. I've just converted to SQL Server backend, which is being tested, but meanwhile the JET based version, running under terminal...
1
by: Elias Politakis | last post by:
What I am failing to understand is how come and the whole world is treating ASP.NET as the irresistable pie for web development, whereas you have a server roundtrip for each mouse click on a form....
43
by: Rob R. Ainscough | last post by:
I realize I'm learning web development and there is a STEEP learning curve, but so far I've had to learn: HTML XML JavaScript ASP.NET using VB.NET ..NET Framework ADO.NET SSL
2
by: Jeff | last post by:
Please note this is NOT a rant or complaint! And yes, I'm over-simplifying, but intentionally. Here goes... With ASP.NET Web applications I like that I can access data from anywhere without...
14
by: John | last post by:
My friend told me that his company will migrate the VC++ win32 applications to C++ .NET windows applications. I don't understand why since currently Microsoft only supports .NET on windows...
0
by: dev | last post by:
Several years ago I developed an Access 97 runtime application. I have rewritten this application using Visual Basic 6 with an Access 2003 database. When I run the VB application with the...
4
by: Chris Asaipillai | last post by:
Hi there My compay has a number of Visual Basic 6 applications which are front endeed onto either SQL Server or Microsoft Access databases. Now we are in process of planning to re-write these...
9
by: Peri | last post by:
Dear All, Is there a way in which 2 application can share a common memory location to access static data? Say for example I have a product master data that is available in a single place, and...
4
by: plaguna | last post by:
My computer is very slow when some Windows applications are running. I defragmented and fixed bad sectors of the C: drive, I deleted open and running applications through regedit, I removed all the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.