Hi
I have (I'm sure) a very basic SQL Server 2000 and VB.NET question;
To simplify:
I've got two tables on SQL "Employees" and "Transactions";
"Employees" has one Field... "EmpNo" and "Transactions" has 3 Fields...
1) "TransNo" (Primary and Identity)
2) "EmpNo" (Foreign Key)
3) "Amount"
Now I've got 1 form with a combo box populated by the "EmpNo" from the "Employees" table and 1 text box;
I want the user to select his name from the combo box enter an amount in the text box and after clicking "update" it should save the info in the "Transactions" table;
How do I get the selection in the combo box to save to the "Transactions" table?;
I've created an "OleDbDataAdapter" and generated a "DataSet";
Thank in advance;
I have (I'm sure) a very basic SQL Server 2000 and VB.NET question;
To simplify:
I've got two tables on SQL "Employees" and "Transactions";
"Employees" has one Field... "EmpNo" and "Transactions" has 3 Fields...
1) "TransNo" (Primary and Identity)
2) "EmpNo" (Foreign Key)
3) "Amount"
Now I've got 1 form with a combo box populated by the "EmpNo" from the "Employees" table and 1 text box;
I want the user to select his name from the combo box enter an amount in the text box and after clicking "update" it should save the info in the "Transactions" table;
How do I get the selection in the combo box to save to the "Transactions" table?;
I've created an "OleDbDataAdapter" and generated a "DataSet";
Thank in advance;