I am having quite a problem running a combobox.
The above code is for two comboboxes, one of which binds to the reference table as expected, and the other not so much. The cboManager combobox fails to display any data.Code:cboManager.Enabled = False cboManager.TabIndex = 1 cboManager.TabStop = False cboManager.DataSource = ManagerBindingSource cboManager.ValueMember = "colStaffID" cboManager.DisplayMember = "colFull" cboOwner.Enabled = False cboOwner.TabIndex = 2 cboOwner.TabStop = False cboOwner.DataSource = DeptBindingSource cboOwner.ValueMember = "colDept" cboOwner.DisplayMember = "colDept"
I checked the Access database and the table contained two records. Additionally, the table connected the Server explorer contains the same two records. However, If I check the table in the dataset the two rows of data do not exist in the table, but all of the data in all of the other tables do exist. I am not even sure how this could happen and have no idea how one would correct this.
So the question is, how is it that one specific table in a dataset has no records, while the same table in the database has records? All other tables in both the dataset and the database have identical data.




Reply With Quote
