whenever I try to run it I have a compile error in connecting my database this is my code
Dim con As Adodb.Recordset
Dim conn1 As Adodb.Connection
Private Sub mygdb()
Set con = New Adodb.Connection
con.CursorLocation = adUseClient
con.Open "PROVIDER = Microsoft.Jet.OLEDB.4.0;Data Source =" & App.Path & "\enrolment.mdb;"
End Sub