W
whistler
I use a listview in one of my forms to load approx. 800 records.
Each row has 5 subitems, so six columns in all.
I load the records by walking through a dao recordset rst something like this
set lv = me.listview1.object
set qd = currentdb.querydefs ("SomeQuery")
set rst = qd.openrecordset
rst.movefirst
while not rst.eof
set li = lv.listitems.add (,,rst!field1)
li.subitems(1) = rst!field2
.....
rst.movenext
wend
Works fine, only performance is quite bad....
I already turn off application.echo before this code (and on again afterwards), which helps a bit, but not really.
Any suggestions ? (Adding indexes to fields in the table underlying qd, using other strategy of populating records, or.....)
Any hint is greatly appreciated....
Jos
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
Each row has 5 subitems, so six columns in all.
I load the records by walking through a dao recordset rst something like this
set lv = me.listview1.object
set qd = currentdb.querydefs ("SomeQuery")
set rst = qd.openrecordset
rst.movefirst
while not rst.eof
set li = lv.listitems.add (,,rst!field1)
li.subitems(1) = rst!field2
.....
rst.movenext
wend
Works fine, only performance is quite bad....
I already turn off application.echo before this code (and on again afterwards), which helps a bit, but not really.
Any suggestions ? (Adding indexes to fields in the table underlying qd, using other strategy of populating records, or.....)
Any hint is greatly appreciated....
Jos
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-