Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub panggildata()
- konek()
- DA = New OleDb.OleDbDataAdapter("SELECT * FROM tb_rayon", conn)
- DS = New DataSet
- DS.Clear()
- DA.Fill(DS, "tb_rayon")
- DataGridView1.DataSource = DS.Tables("tb_rayon")
- DataGridView1.Enabled = True
- End Sub
- Sub jalan()
- Dim objcmd As New System.Data.OleDb.OleDbCommand
- Call konek()
- objcmd.Connection = conn
- objcmd.CommandType = CommandType.Text
- objcmd.CommandText = sqlnya
- objcmd.ExecuteNonQuery()
- objcmd.Dispose()
- TextBox1.Text = ""
- TextBox2.Text = ""
- TextBox3.Text = ""
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement