Here is the ideal scenario - When a command button on an Active X control that is embeded in a datarepeater is clicked, a popup form loads and displays detailed information based on the ID of the current record on the repeater control.
I am passing the Id of the current record to a public property of the main form whenever the open button in the ocx is clicked. This Id is obtained from the CurrentRecordChanged() event of the repeater control.
However, if the popup form is opened from the button on the ocx, it does not retrieve the value passed and hence no records are displayed on it.
On the other hand, if the popup form is opened from a command button on the main form, it loads up fine and displays all the records like its supposed to.
So what's the difference besides where the form is loaded from? Is there any other way of tackling this issue?
I am passing the Id of the current record to a public property of the main form whenever the open button in the ocx is clicked. This Id is obtained from the CurrentRecordChanged() event of the repeater control.
However, if the popup form is opened from the button on the ocx, it does not retrieve the value passed and hence no records are displayed on it.
On the other hand, if the popup form is opened from a command button on the main form, it loads up fine and displays all the records like its supposed to.
So what's the difference besides where the form is loaded from? Is there any other way of tackling this issue?