ajrecette.Myreq = "INSERT INTO Ingredient ( FicheID, LstingID, quantite, unite )values('" & recUPID.IdFiche & "','" & recUPID.IdIng & "','" & TextBox2.Text & "','" & ComboBox3.SelectedItem & "')"
Try
ajrecette.Myreq = "INSERT INTO Fiche ( TitreRecettes, StypeID, Progression )values('" & Me.TextBox1.Text & "'," & recUPID.IdType & ",'" & Replace(RichTextBoxEx1.rtb.Text, "'", "''") & " ')"
ajrecette.Connecting_Up()
Catch ex As Exception
MsgBox(ex.Message)
Finally
If ConnectionState.Open Then
ajrecette.Deconnecteadapt()
End If
End Try
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
INSERT INTO Ingredient ( FicheID, LstingID, quantite, unite )
SELECT Ingredient.FicheID, Ingredient.LstingID, Ingredient.quantite, Ingredient.unite
FROM Fiche INNER JOIN Ingredient ON Fiche.FicheID = Ingredient.FicheID;