visual studio 2013 database connection


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)


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?


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question