Hi, I have an application which displays data in TextBoxes and DataCombos(Style 2) depending on which Main Record is selected from a Main DataGrid.
The Main DataGrid's DataSource is adodcMain. On adodcMain.MoveComplete a RecordSet (rsOneRec) is created based on details from the DataGrid. TextBoxes and DataCombos are then populated (provided there is a record) along the lines of:
This is fine, however I can't display corresponding
details in the DataCombos.
The DataCombos (5) are populated at the Sub Loader stage by RecordSet's made up of a Description_Code and a Description. The BoundColumn (Description_Code), RowSource and ListField(Description) propertys are all set at this point.
I've tried:
but nothing is displaying in the DataCombos.
Thanks in advance for any help.
p.s. there is a reason I'm using RecordSets and not Adodcs
The Main DataGrid's DataSource is adodcMain. On adodcMain.MoveComplete a RecordSet (rsOneRec) is created based on details from the DataGrid. TextBoxes and DataCombos are then populated (provided there is a record) along the lines of:
Code:
txtDetail(14).Text = rsOneRec!mg_branch & Empty
txtDetail(15).Text = rsOneRec!mg_depart & Empty
This is fine, however I can't display corresponding
details in the DataCombos.
The DataCombos (5) are populated at the Sub Loader stage by RecordSet's made up of a Description_Code and a Description. The BoundColumn (Description_Code), RowSource and ListField(Description) propertys are all set at this point.
I've tried:
Code:
dcboDept.DataField = ""
Set dcboDept.DataSource = rsOneRec
dcboDept.DataField = Description
but nothing is displaying in the DataCombos.
Thanks in advance for any help.
p.s. there is a reason I'm using RecordSets and not Adodcs