aldovalerio
Programmer
VB 6.0; ADO 2.6. I have a DataCombo control bound to an Adodc. I programmatically create a recordset from a stored procedure, and assign the recordset to the adodc: Set Adodc.Recordset = rst. Then I set the rst to nothing. I would then like to sort the DataCombo's data with the recordset sort method. If I sort the rst that I return the stored proc. to, it works fine, but when I assign it to the adodc, it loses it's sort. My adodc properties are: CursorLocation=adUseClient, CursorType=adOpenStatic, LockType=adLockReadOnly, Mode=adModeRead. Since I'm destroying the rst after assigning it to the adodc, I'm wondering if these property settings have any effect; given that there is no persistent db connection. My objective in using an ADO sort is to reduce the number of stored procs. calls (and db traffic), since 2 of them return the same results; just with a different SQL "ORDER BY" clause.