Getting a compile error: User defined type not defined
Sub connecttoDB()
Dim accessconn As accdb.Connection
Set accessconn = New accdb.Connection
accessconn.connectionstring = "provider=microsoft.ace.olebd.12.0;data source = S:\WL.accdb"
accessconn.Open
End Sub