Adapter = New MySqlDataAdapter("Insert into tbluser (UserID
,Name
,UserType
,Password)
values( '" & txtUserId.Text & "'
, '" & txtName.Text & "'
, '" & cmbUserType.Text & "'
, '" & "'
, AES_ENCRYPT('" & txtpass.Text & "','x'))", connection)
You have more values than you have defined columns to insert. It looks like the problem is an empty field between the UserType and the Password. Revise it like so should resolve the column count error:
Adapter = New MySqlDataAdapter("Insert into tbluser ( UserID
, Name
, UserType
, Password)
values( '" & txtUserId.Text & "'
, '" & txtName.Text & "'
, '" & cmbUserType.Text & "'
, AES_ENCRYPT('" & txtpass.Text & "','x'))"
, connection)