calstudent
New Member
- Joined
- Feb 11, 2019
- Messages
- 1
Having an issue trying to debug someone's work, don't know this style of coding well and so not sure what is wrong here exactly but the error it says is user-defined type not defined, and I tried fixing this by defining it as a different declaration and that didn't work.
' Connect to the Reference Section table
Dim DBConn As ADODB.Connection
Set DBConn = New ADODB.Connection
DBConn.connectionstring = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & m_Database & "; Persist Security Info=False;"
DBConn.Open
' Connect to the Reference Section table
Dim DBConn As ADODB.Connection
Set DBConn = New ADODB.Connection
DBConn.connectionstring = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & m_Database & "; Persist Security Info=False;"
DBConn.Open