Could someone assist me with this code?

Hi again.  I am still copying this material from a textbook, but have again met with an obstacle.

After copying the form and class modules, when I run it, I get a "User-defined type not defined" on the following line (for DataSource):

'*****Property Procedures*****

Public Property Get Insurance() As DataSource
    'Expose the data source to bind to the DataCombo box
    Set Insurance = mDataService
End Property

Can anyone help me locate the problem?
Who is Participating?
It looks like you may need to make a reference to the appropriate data access component.  Try this:

Go to Project  >  References and make a reference to the data access component outlined in your book...

shawngilbertAuthor Commented:
The only references the text mentions are to Microsoft Data Binding Collection and Microsoft ActiveX Data Objects 2.0 Library
Although I have added a reference to Microsoft Data Source Interfaces and it gets beyond that point.
Now I need to determine why it's failing from here.

Thank you for the assistance.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.