visual studio 2013 database connection

  • Thread starter Thread starter Chris Eby
  • Start date Start date
C

Chris Eby

I tried to use the following code from an earlier version of VB to use on visual studio 2013 vb but I get errors:

Dim DBName As String, TableName As String

DBName = "DatabaseChris.accdb"
TableName = "Revelation"

Dim GGDB As Database, GGDBTable As Recordset
Set GGDB = DBEngine.Workspaces(0).OpenDatabase(DBName)
Set GGDBTable = GGDB.OpenRecordset(TableName, DB_OPEN_TABLE)

GGDBTable.MoveFirst

Why won't this "older" code work with Visual Basic 2013? Can't VB 2013 convert the older code to work with the newer program?
 
Back
Top