title image


Smiley Re: Problem mit ADO und DataGrid
Hallo

Public adoConnection As ADODB.Connection

Private RecordSet As New ADODB.RecordSet

 

Public Function get_memberlist(Optional ByVal search As Boolean = False)

On Error Resume Next

 

sql = "select * from member"

 

If search = True Then

sql = sql & " where name like '" & frmEnrollment.txtMembernr.Text & "*'"

End If

 

RecordSet.Open sql, adoConnection, adOpenDynamic, adLockOptimistic

Set frmSearchMember.dbMember.DataSource = RecordSet

 

RecordSet.Close ' weil Du hier den Recorset wieder schliesst !!

End Function

geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: