Hello
You made Master/Detail relation between mtDetail and dsGroups. It is incorrect when dsDetail and dsGroups participate as ListSources in LookupComboboxes. LookupComboboxes call ListSources.Locate funtion fairly often and it is not defined when and how many times. Every call of Locate of dsGroups will reorange detail information in dsDetail.
More correct way is to set mtDetail.MasterDataSource to dsMaster as It defines final value if the GroupId value.
I set mtDetail.MasterDataSource to dsMaster and both Buttons started to work correctly. Best regards Admin.
_________________ Best regards Admin
|