Input Database Mysql VB 2010
Input Database Mysql VB 2010
Imports System.Data.Odbc
Public Class Form1
Dim Conn As OdbcConnection
Dim da As OdbcDataAdapter
Dim ds As DataSet
Dim str As String
Dim CMD As OdbcCommand
TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" &
TextBox4.Text & "')"
CMD = New OdbcCommand(simpan, Conn)
CMD.ExecuteNonQuery()
MsgBox("Data berhasil di Input", MsgBoxStyle.Information,
"Information")
Call KondisiAwal()
End If
End Sub
Sub KondisiAwal()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
Me.Text = "www.belajarvb.com"
Koneksi()
da = New OdbcDataAdapter("Select * from anggota ", Conn)
ds = New DataSet
ds.Clear()
da.Fill(ds, " anggota ")
DataGridView1.DataSource = (ds.Tables("anggota"))
End Sub
End Class
Imports System.Data.Odbc
Public Class Form1Petugas
Dim Conn As OdbcConnection
Dim
Dim
Dim
Dim
da As OdbcDataAdapter
ds As DataSet
str As String
CMD As OdbcCommand