PDA

Click to See Complete Forum and Search --> : Passing a recordset of a datacontrol to function in ActiveX DLL and return to it.


harshad_agashe
Feb 27th, 2001, 04:34 AM
I have a form which has a DBGrid related to a Data Control accessing Access table.
I have a DLL with a function for search records.
I need to pass the recordset of datacontrol to search function. Requery the recordset and refresh the DBGrid with records satisfying the
criteria.

To give you a clear picture, the form is used to search tel no extensions. The user will enter name like 'Ja' .So Grid should all names
starting with JA.

VB version - 5.0 OS - WinNT 4

Bill Crawley
Feb 27th, 2001, 07:23 AM
Why use a datcontrol at all, it just causes excess baggage?!! Use the msflexgrid and set its datasource to a standard ado recordset. your function can accept/return a recordset. Just make sure on return you use rebind.