Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 24th, 2005, 03:50 AM
shahzad_aijaz shahzad_aijaz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 13 shahzad_aijaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 18 sec
Reputation Power: 0
Exclamation Application navigating slow

Hi!
I am facing a problem with a desktop database application built using ADO and VB6 with Access 2000 database. After running the application for an hour or so the navigation of records (MoveFirst, MoveNext, MovePrev, MoveLast) become very slow an all the forms.

Almost all of the forms are using the following code for opening a reordset.

Dim WithEvents rsRepOrder As Recordset

Private Sub Form_Load()
Dim strRepOrder As String
Set rsRepOrder = New ADODB.Recordset
If DataEnv.Conn.State = adStateClosed Then DataEnv.Conn.Open
strRepOrder = "Select * from Repair_Order order by Order_Date Desc"
If rsRepOrder.State = adStateOpen Then rsRepOrder.Close
rsRepOrder.Open strRepOrder, DataEnv.Conn, adOpenStatic, adLockOptimistic
End Sub

Note: Iam using a single Data Environment Connection Object to open all the recordsets in the application

Regards
Shahzad Aijaz

Reply With Quote
  #2  
Old August 24th, 2005, 12:57 PM
Adomus Adomus is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: England
Posts: 194 Adomus User rank is Private First Class (20 - 50 Reputation Level)Adomus User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 59 m 5 sec
Reputation Power: 4
are you closing the connection to the DB?

Reply With Quote
  #3  
Old August 24th, 2005, 02:46 PM
shahzad_aijaz shahzad_aijaz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 13 shahzad_aijaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 18 sec
Reputation Power: 0
Quote:
Originally Posted by Adomus
are you closing the connection to the DB?

Yes. But only at the Unload of the main MDI form of the application

Regards
Shahzad Aijaz

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Application navigating slow


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT