I have try this but it always give an error
Code:
k = MessageBox.Show(DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value.ToString)
connection.Open()
p = "UPDATE police_deployment_system.police_profiles SET POLICE_STATION_ID = """ & man & """ where police_deployment_system.police_profiles.POLICE_ID = """ & k & """ "
Dim cmd As MySqlCommand = New MySqlCommand(p, connection)
adapter = New MySqlDataAdapter(p, connection)
adapter.Fill(ds)
command.CommandText = "Select * from police_profiles"
Comment