Am new to object orientated programming and what to do things right....
I have a recordset and I want to create properties automatically in a class that match the fields in the recordset.
I want to, in some way, bind text box controls on a form to the class properties and then have class methods to update the recordset accordingly.
For example. A recordset called 'Names' that has three fields: 'Forename' (string 10 characters), 'Surname' (string 20 chars), 'Age' (long).
In my class called, say, clsNames I want to create three properties automatically based on the three fields, i.e. without having to code Get and Let statements manually.
I then want three text boxes on a form to be bound to the class properties.
Any suggestions would be appreciated.
I have a recordset and I want to create properties automatically in a class that match the fields in the recordset.
I want to, in some way, bind text box controls on a form to the class properties and then have class methods to update the recordset accordingly.
For example. A recordset called 'Names' that has three fields: 'Forename' (string 10 characters), 'Surname' (string 20 chars), 'Age' (long).
In my class called, say, clsNames I want to create three properties automatically based on the three fields, i.e. without having to code Get and Let statements manually.
I then want three text boxes on a form to be bound to the class properties.
Any suggestions would be appreciated.