Sorry if this is a bit basic - my first VB / SQL app.
SQL 2005 with:
dbo.Employee
EmployeeID (int,PK)
LastName (nvarchar50)
dbo.Purchase Orders
PurchaseOrderID (int,PK)
EmployeeID (FK, int)
On Form1 I have a bound combo box:
DataSource: EmployeesBindingSource
DisplayMember: LastName
ValueMember: EmployeeID
When I run the app the combo box populates with LastName fine. When I select an entry however, the application will not function foward. If I type into the combo box the digit for EmployeeID - everything moves on fine.
I'm taking this to indicate that the control is not pushing the EmployeeID value back to the DataSet and is pushing the text (LastName) value.
I would appreciate help in learning how to sort this.
Thanks.
SQL 2005 with:
dbo.Employee
EmployeeID (int,PK)
LastName (nvarchar50)
dbo.Purchase Orders
PurchaseOrderID (int,PK)
EmployeeID (FK, int)
On Form1 I have a bound combo box:
DataSource: EmployeesBindingSource
DisplayMember: LastName
ValueMember: EmployeeID
When I run the app the combo box populates with LastName fine. When I select an entry however, the application will not function foward. If I type into the combo box the digit for EmployeeID - everything moves on fine.
I'm taking this to indicate that the control is not pushing the EmployeeID value back to the DataSet and is pushing the text (LastName) value.
I would appreciate help in learning how to sort this.
Thanks.