Can someone help me with this?
I need to retrive about 60000 records to a data grid and then about more 30000 records to other datagrid. The problem ist that it takes to loong. Can somebody tell me the best way to retrive all this data?
Code sample:
private sub refresh_records()
adodcsrcar.RecordSource = "SELECT col002, COL006 FROM expar ORDER BY col002"
adodcsrcar.Refresh
Set gridsrcAr.DataSource = adodcsrcar
gridsrcAr.Columns(0).DataField = "col002"
gridsrcAr.Columns(1).DataField = "col006"
adodcsrcdesc.RecordSource = "SELECT col002, COL006 FROM expar ORDER BY col006"
Set gridsrcdesc.DataSource = adodcsrcdesc
gridsrcdesc.Columns(0).DataField = "col002"
gridsrcdesc.Columns(1).DataField = "col006"
end sub
I need to retrive about 60000 records to a data grid and then about more 30000 records to other datagrid. The problem ist that it takes to loong. Can somebody tell me the best way to retrive all this data?
Code sample:
private sub refresh_records()
adodcsrcar.RecordSource = "SELECT col002, COL006 FROM expar ORDER BY col002"
adodcsrcar.Refresh
Set gridsrcAr.DataSource = adodcsrcar
gridsrcAr.Columns(0).DataField = "col002"
gridsrcAr.Columns(1).DataField = "col006"
adodcsrcdesc.RecordSource = "SELECT col002, COL006 FROM expar ORDER BY col006"
Set gridsrcdesc.DataSource = adodcsrcdesc
gridsrcdesc.Columns(0).DataField = "col002"
gridsrcdesc.Columns(1).DataField = "col006"
end sub