belovedcej
Programmer
I have a start, but believe I am misunderstanding something, because it keeps telling me "not a valid recordset object" once it reaches the step of setting the form's recordset to my created one.
purpose - trying to speed up a very slow form which is bound and loads about 400 records at once. If I could limit the cachesize, I believe performance would greatly improve.
Could someone advice me as to my errors? Thanks! (BTW, my source is a stored procedure rather than a view, for performance reasons again.)
purpose - trying to speed up a very slow form which is bound and loads about 400 records at once. If I could limit the cachesize, I believe performance would greatly improve.
Could someone advice me as to my errors? Thanks! (BTW, my source is a stored procedure rather than a view, for performance reasons again.)
Code:
Dim rst As New ADODB.Recordset
Dim con As New ADODB.Connection
con = CurrentProject.BaseConnectionString
con.Open
rst.CacheSize = 10
rst.Open "dbo.CSF_Form_Claims_SP", con
Set Form_frmClaims.Recordset = rst
rst.Close
con.Close