Phil
09-06-2000, 08:10 AM
Hi,
I am currently working on a front end for an Access database which will be read over a network by a number of users. An SQL query is created from users input and the resultant recordset is displayed. I've currently looked at two methods.
1) Creating a recordset in code using ADO and then 'manually' filling a FlexGrid control by looping though the recordset. This is quicker for a small number of records. Or
2) Binding a DataGrid control to a ADODC control at design time and updateing the ADODC control's recordsource property with the SQL string. This tends to take the same amount of time (roughly) to return a few records or thousands, hence most of the time it's slower than the above but on occasion it out performs it.
I'll probably end up combining the two methods, but I was wondering what other peoples experiences were with this problem and if there are alternatives I haven't looked at yet.
Thanks a lot
Phil
I am currently working on a front end for an Access database which will be read over a network by a number of users. An SQL query is created from users input and the resultant recordset is displayed. I've currently looked at two methods.
1) Creating a recordset in code using ADO and then 'manually' filling a FlexGrid control by looping though the recordset. This is quicker for a small number of records. Or
2) Binding a DataGrid control to a ADODC control at design time and updateing the ADODC control's recordsource property with the SQL string. This tends to take the same amount of time (roughly) to return a few records or thousands, hence most of the time it's slower than the above but on occasion it out performs it.
I'll probably end up combining the two methods, but I was wondering what other peoples experiences were with this problem and if there are alternatives I haven't looked at yet.
Thanks a lot
Phil