my windows form (form1) has textbox control (textbox1) , combobox control (combobox1) which all contain items (table1 - table2 - table3) and the sql database name (database1) and it has a tables (table1 - table2 - table3)which are identical each contains columns (itemcode - itemname - itemprice)
i want to show the last row of column(itemcode) according to table name i will choose from combobox1

Raja TRank #685 · 3.5K reputationPosted Oct 15, 2015, 8:46 PM EDT
SELECT MAX(ID) AS LastID FROM 'Selected Table'
2) Then select itemcode from selected table in ComboBox based on Last Id likemind controll144 reputationPosted Oct 16, 2015, 6:16 AM EDT
mind controll144 reputationPosted Oct 16, 2015, 8:41 AM EDT