1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Private Sub Valider_Click()
If Option1.Value = True Then
SQL = "insert into utilisateur(nom, prenom, tel, pseudo, motpass, question, reponse, profile)" & _
" values('" & Text1 & "' , '" & Text2 & "' , '" & MaskEdBox1.Text & "' , '" & Text3 & "' ," & _
" '" & Text4 & "' , '" & Text5 & "' , '" & Text6 & "' , 'Administrateur'"
Base.Execute SQL
ElseIf Option2.Value = True Then
SQL = "insert into utilisateur(nom, prenom, tel, pseudo, motpass, question, reponse, profile)" & _
" values('" & Text1 & "' , '" & Text2 & "' , '" & MaskEdBox1.Text & "' , '" & Text3 & "' ," & _
" '" & Text4 & "' , '" & Text5 & "' , '" & Text6 & "' , 'Vendeur'"
Base.Execute SQL
End If
Call Effacer 'Vider les champs du saisis
End Sub |
Partager