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.
But, then when the code references the connection:
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
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
Code:
Rs.Open(sSQL, poConAcs.ADODB_AccessCon, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockReadOnly)
I can't find that reference. Any suggestions would be appreciated.
Thanks,
Dave