Rev. Michael L. Burns
Oct 16th, 2000, 07:09 AM
I have a DBList control 9dbListType)on one of my forms that displays to contents of a field in my database. The DBlist control is connected to a data control (datType). The capyion of the Data Control displays the current record.
As I step through the list using the data control everything works fine. However, if I click on an item in the list I would like the data control to move to that record. For instance, if the data control is currently at record 10 of 100, the 10th record is hilighted in the list control. However, if I now click on record 15 in the list control, although it now becomes hilighted, the data control remains at record 10. How can I get the record to reflect whatever record I click on in the DBList as well?
The problem is if I cycle through the list with the data control and delete a record it will delete the current record. However, it I move to record 15 in the DBList and the data control is still on record 10, then record 10 will be deleted, instead of the desired record 15 as hilighted in the dblist.
Sometimes it's easier to scroll through the list and select the record than it is to cycle through them with the data control.
Any help here would be most appreciated.
Rev. Michael L. Burns
As I step through the list using the data control everything works fine. However, if I click on an item in the list I would like the data control to move to that record. For instance, if the data control is currently at record 10 of 100, the 10th record is hilighted in the list control. However, if I now click on record 15 in the list control, although it now becomes hilighted, the data control remains at record 10. How can I get the record to reflect whatever record I click on in the DBList as well?
The problem is if I cycle through the list with the data control and delete a record it will delete the current record. However, it I move to record 15 in the DBList and the data control is still on record 10, then record 10 will be deleted, instead of the desired record 15 as hilighted in the dblist.
Sometimes it's easier to scroll through the list and select the record than it is to cycle through them with the data control.
Any help here would be most appreciated.
Rev. Michael L. Burns