-
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
-
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.