When i try to debug the error pointing at rs3.Open query, cn, adOpenDynamic, adLockPessimistic(BOLD)
ElseIf Index = 2 Then
If MsgBox("Save The Product?", vbQuestion + vbYesNo, "Message") = vbNo Then: Exit Sub
query = "Insert into ProductLabel(ProductId,ProductName,Category,SubCategory,Supplier,Ceiling,Flooring,Reorder,Critical,Markup,Price)Values('" & Text1(0).Text & "','" & Text1(1).Text & "','" & Combo1(0).Text & "','" & Combo1(1).Text & "','" & Combo1(2).Text & "','" & Text1(5).Text & "','" & Text1(6).Text & "','" & Text1(7).Text & "','" & Text1(8).Text & "','" & Text1(9).Text & "','" & Text1(10).Text & "');"
'
'" & Combo3.Text & "','" & Text3.Text & "','" & Text4.Text & "','" & Text5.Text & "','" & Text6.Text & "','" & Text7.Text & "','" & Text8.Text & "');"
[b]rs3.Open query, cn, adOpenDynamic, adLockPessimistic[/b]
Textclear
Frame15.Visible = True
Timer1.Enabled = True

New Topic/Question
Reply




MultiQuote




|