I'm having trouble inserting an item from two different tables using a vb.net and MySql
This is Item table and Stocks Table in a single query:
Dim rsitem As New ADODB.Recordset
rsitem.CursorLocation = ADODB.CursorLocationEnum.adUseClient
rsitem.CursorType = ADODB.CursorTypeEnum.adOpenDynamic
rsitem.Open("Insert Into items,stocks itemno = '" & txtItemNo.Text & "', Description = '" & txtDescription.Text & "', Price = '" & txtPrice.Text & "', Brand = '" & txtBrand.Text & "', stocks_on_hand = '" & txtStocks.text &"'",cn)
My problem is when I type in inputbox the txtStocks.text doesn't show what I input from my vb.net into mysql db. I think I have a wrong query. Can someone help me. ?