J
Jon Lewis
Has anyone any experience of creating an ActiveX control with VB6 for use on
a Microsoft Access form? How would one go about allowing the control to be
'Bound'?
I'd like to drop the control onto a bound Access form and choose a Control
Source for it in the same way as a standard Access control.
I'm thinking that all the properties of the Access form should be exposed
through the Ambient property of the Control so I could grab the form's
Record Source and populate a combo for a "ControlSource" property of the
control in its Property Page with all the Fields in the Record Source and
hence set the property.
I could then set the control's "Value" property by reading the Field's value
in the Form's Current event but how could I write a changed value back to
the Form's RecordSource? Would a seperate DAO connection work without
conflict? Any help or examples greatly appreciated.
TIA
a Microsoft Access form? How would one go about allowing the control to be
'Bound'?
I'd like to drop the control onto a bound Access form and choose a Control
Source for it in the same way as a standard Access control.
I'm thinking that all the properties of the Access form should be exposed
through the Ambient property of the Control so I could grab the form's
Record Source and populate a combo for a "ControlSource" property of the
control in its Property Page with all the Fields in the Record Source and
hence set the property.
I could then set the control's "Value" property by reading the Field's value
in the Form's Current event but how could I write a changed value back to
the Form's RecordSource? Would a seperate DAO connection work without
conflict? Any help or examples greatly appreciated.
TIA