🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #4121

[VB6] datafield property van textbox

#4121
From: Passero
Date: Fri, 26 Sep 2003 14:21
21 lines
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
Technical Details
Message-ID: <lXXcb.41675$iQ3.1983529@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: 107324,bb597c1bf34dc43f,start
X-Google-Attributes: gid107324,public
X-Google-Thread: fcea4,bb597c1bf34dc43f,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-09-26 07:21:13 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: "Passero" <yanongena@pandora.be>
Newsgroups: be.comp.programming,nl.comp.programmeren
Subject: [VB6] datafield property van textbox
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
Message-ID: <lXXcb.41675$iQ3.1983529@phobos.telenet-ops.be>
Date: Fri, 26 Sep 2003 14:21:05 GMT
NNTP-Posting-Host: 213.224.11.14
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1064586065 213.224.11.14 (Fri, 26 Sep 2003 16:21:05 MEST)
NNTP-Posting-Date: Fri, 26 Sep 2003 16:21:05 MEST
Organization: Telenet Internet