Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27299

Reference Required... I cannot find it!

$
0
0
I am trying to upgrade a VB6 app to .Net. I have imported the app into VS 2008. I have an Error that I cannot solve. The following code looks good. It seems to open the connection.

Code:

        poConAcs = New DBConLib.clsADODB_Access
        If Not poConAcs.ADODB_Access_Connection(gsDbPath, gsDbName, "password") Then
            'UPGRADE_NOTE: Object poConAcs may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
            poConAcs = Nothing
            Exit Sub
        End If

But, then when the code references the connection:

Code:

        Rs.Open(sSQL, poConAcs.ADODB_AccessCon, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockReadOnly)
It show an error under the poConAcs.ADODB_AccessCon section and says: "Reference required to assembly 'Interop.ADODB, Version 2.8.0.0...."
I can't find that reference. Any suggestions would be appreciated.

Thanks,
Dave

Viewing all articles
Browse latest Browse all 27299

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>