Torna al Thread

Public Sub GestioneContatti_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles MyBase.Load Dim strsql As String Dim strCN As String Dim contatto As String strsql = "Select * from contatti" strCN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\database.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False" CN.Open(strCN) RS = CN.Execute(strsql) While Not RS.EOF contatto = " " + RS.Fields("Nome").Value + " " + RS.Fields("Cognome").Value cmbContatti.Items.Add(contatto) RS.MoveNext() End While CN.Close() End Sub
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5