Kelly M. Kerns
August 21st, 2001, 02:13 PM
I have created a user control which is to be dound to a database.
I have set DataBindingBehavior to vbSimpleBound
Through the Procedure Attributes I have bound one of my properties to the DataField.
The control complies and allows me to at design time to site the control and set the datafield
property.
When I attempt to set the datasource at runtime I get the following error:
"Run time Error 545
Unable to bind to field DataMember: 'fieldname'"
The microsoft knowledge base tells me that the record set I am trying to bind doesn't have the field named in DataField as one of it's fields. This is not the case. I have even stepped through the code and checked the Fields collection of the datasource prior to binding. It is definately there.
Any Ideas?
I have set DataBindingBehavior to vbSimpleBound
Through the Procedure Attributes I have bound one of my properties to the DataField.
The control complies and allows me to at design time to site the control and set the datafield
property.
When I attempt to set the datasource at runtime I get the following error:
"Run time Error 545
Unable to bind to field DataMember: 'fieldname'"
The microsoft knowledge base tells me that the record set I am trying to bind doesn't have the field named in DataField as one of it's fields. This is not the case. I have even stepped through the code and checked the Fields collection of the datasource prior to binding. It is definately there.
Any Ideas?