Article View: free.it.visual-basic
Article #3260combo
From: ferplus
Date: Wed, 21 Aug 2002 16:43
Date: Wed, 21 Aug 2002 16:43
29 lines
1643 bytes
1643 bytes
come si associa una combo con un datagrid?
ossia ad un record selezionato in una combo trovo il o i suoi corrispondenti
record nel datagrid.
con il datalist ho fatto cosi' e ha funzionato:
Private Sub DataList1_Click()
Dim strQuery As String
strQuery = "select*from products where SupplierID=" & DataList1.BoundText
With Adodc1
.RecordSource = strQuery
.Refresh
End With
With DataGrid1
.ClearFields
.ReBind
End With
End Sub
ho provato ha mettere lo stesso codice nella combo ma non funziona cosa c'e'
di sbagliato?
grazie e ciao
--
ciao
Technical Details
Message-ID:
<XqP89.85909$lu5.2431696@twister1.libero.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!news.tele.dk!small.news.tele.dk!212.177.105.133!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII-7-bit X-Google-Thread: f94ee,5643147715341919,start X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2002-08-21 09:49:43 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!news.tele.dk!small.news.tele.dk!212.177.105.133!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail From: "ferplus" <rofert@inwind.it> Newsgroups: free.it.visual-basic Subject: combo Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <XqP89.85909$lu5.2431696@twister1.libero.it> Date: Wed, 21 Aug 2002 16:43:35 GMT NNTP-Posting-Host: 62.98.86.44 X-Complaints-To: abuse@inwind.it X-Trace: twister1.libero.it 1029948215 62.98.86.44 (Wed, 21 Aug 2002 18:43:35 MET DST) NNTP-Posting-Date: Wed, 21 Aug 2002 18:43:35 MET DST Organization: [Infostrada]