Results 1 to 2 of 2

Thread: Passing a recordset of a datacontrol to function in ActiveX DLL and return to it.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    17
    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
    Harshad Agashe

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width