Option Explicit Public Con As ADODB.Connection Public Rst As ADODB.Recordset
Public Sub Main() Set Con = CreateObject("ADODB.Connection") With Con .ConnectionString = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=" _ & App.Path & "\data\data.mdb" .Open End With End Sub