Private Sub Command1_Click() If (Text1.Text "" Or Text2.Text "" Or Text3.Text = "" Or Text4.Text = "" Or Text5.Text = "" Or Text6.Text = "") Then MsgBox "veuillez terminer les données de votre voiture" Else Adodc1.RecordSource = "INSERT INTO Voiture(Num_imatriculation,Marque,Puissance_fiscale,Couleur,Energie,Nombre_de_places) values ('" & Text1.Text & "','" & Text2.Text & "','" & Text3.Text & "','" & Text4.Text & "','" & Text5.Text & "'," & Text6.Text & ");" MsgBox " Voiture ajoutée dans votre table" Adodc1.Refresh Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text1.SetFocus End If End Sub
pas etre obligé d'ouvrir ma base de données pour pouvoir ajouter via vb6
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question