Private Sub cmdLogin_Click()
Dim comSave As New ADODB.Command
Dim sqlAdd As String
Set RS = New ADODB.Recordset
With comSave
.ActiveConnection = ConnDB
.CommandType = adCmdText
End With
ConnDB.BeginTrans
sqlAdd = "INSERT INTO UserName (FullName,IDCard,CustomerID,Office,Address,Telephone,UserId,UserPwd)"
sqlAdd = sqlAdd & "VALUES('''& txtFullName.Text & ''', ''' & txtIDCard.Text & ''', ''' & txtCustomerID.Text & ''',''' & txtOffice.Text & ''' ,''' & txtAddress.Text & ''',''' & Telephone.Text & ''',''' & txtUserName.Text & ''', ''' & txtPassword.Text & ''')"
Please,help me.I can't record my DataBase.