Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Slow opening form with ado and large recordset

Status
Not open for further replies.

cab

IS-IT--Management
Apr 11, 2000
2
CA
I'm somewhat new to ado and am having a problem opening aform. It takes over a minute to start when I use 'SELECT' to gather all the records... is there a better way. Below is a snippet of the code.


Private Sub Form_Load()
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;" & "Data Source=f:\Clear\Clear.mdb"

Set adoPrimaryRS = New Recordset
adoPrimaryRS.Open "SELECT * from FsrData,CustList WHERE FsrData.ServCust=CustList.CustNum", db, adOpenStatic, adLockOptimistic

Any help or ideas to speed up entry into the form would be appreciated
Colin
 
Crikey, how many records are you displaying. It looks better if you show the form first and then display the data. If you are subsequently selecting a customer and showing the data for that one, then don't display any data when the form loads, wait until the selection. Also have a look at the indexing on the tables. Is it mega slow in Access too?
 
Thanks

No its not slow in Access... its about 26000 records.

I display one record on the form.. and a Data control to scroll through the records

I've set each Text Object to a DataField..

Colin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top