chrisguk
Active member
- Joined
- Nov 20, 2011
- Messages
- 29
- Programming Experience
- Beginner
I have created a service based DB with two tables as a test.
Table structure is as follows:
tblSIMStock:
pkStockID - int
StockDetail
DataNumber
fkStockLocationID
tblStockLocation:
pkStockLocationID - int
LocationDetail
There is a relation setup between fkStockLocationID and pkStockLocationID
This is also added to the dataset diagram.
I drag the tablle SIMStock to the form and then change the field fkStockLocation ID to a combo box. I ensure it is setup as a bound item with tblStockLocationBindingsource.
This is where the problem starts. I debug and then add a new record, I select an item from the combo box and click save. Then add another record and so on. My combo box values do not change according to the values I previously selected. So for example, I have 3 values:
Home
Away
Repair
I select create 3 records with each of them populated. But when I re-navigate through the records they all default to home again.
Any ideas guys?
Table structure is as follows:
tblSIMStock:
pkStockID - int
StockDetail
DataNumber
fkStockLocationID
tblStockLocation:
pkStockLocationID - int
LocationDetail
There is a relation setup between fkStockLocationID and pkStockLocationID
This is also added to the dataset diagram.
I drag the tablle SIMStock to the form and then change the field fkStockLocation ID to a combo box. I ensure it is setup as a bound item with tblStockLocationBindingsource.
This is where the problem starts. I debug and then add a new record, I select an item from the combo box and click save. Then add another record and so on. My combo box values do not change according to the values I previously selected. So for example, I have 3 values:
Home
Away
Repair
I select create 3 records with each of them populated. But when I re-navigate through the records they all default to home again.
Any ideas guys?