Dear all,
I know that in Access you can bind the value of one control to the value of another control. For example:
Is there a way to do the same for class objects. In other words, can I bind the properties of an object to a control. Something like this:
I know that in Access you can bind the value of one control to the value of another control. For example:
Code:
txtFirstName.ControlSource = lstEmployees.Column(1)
Is there a way to do the same for class objects. In other words, can I bind the properties of an object to a control. Something like this:
Code:
private objEmployee as clsEmployee
Private Sub Form_Load()
' Create employee
Set objEmployee = New clsEmployee
objEmployee.FirstName = "John"
' Bind to control
txtFirstName.ControlSource = objEmployee.FirstName
End Sub