Thread View: be.comp.programming
1 messages
1 total messages
Started by Passero
Fri, 26 Sep 2003 14:21
[VB6] datafield property van textbox
Author: Passero
Date: Fri, 26 Sep 2003 14:21
Date: Fri, 26 Sep 2003 14:21
21 lines
1781 bytes
1781 bytes
Hoe kan ik die property via de code instellen. Ik heb dit geprobeerd maar
het lukt niet. Ik krijg ook geen foutmelding dus...
Private Sub Form_Load()
maakCon
Set Text1.DataSource = conn
Text1.DataField = rs.Fields(0)
End Sub
Volgende code staat in een module:
Public rs As ADODB.Recordset
Public Sub maakCon()
Set rs = New ADODB.Recordset
connstring = "Driver={MySQL ODBC 3.51
Driver};SERVER=localhost;DATABASE=avd;user=dirk"
conn.avd.CursorLocation = 3
conn.avd.Open connstring
Set rs = conn.avd.Execute("select * from klanten")
End Sub
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads