I'm trying to create a connection to Northwind database in sql server from a function in Microsoft Access 2019.
I have a saved ODBC connection called Northwind.
When I use the following code:
I receive an error saying Northwind couldn't be located.
Images are attached.
Am I missing anything?
Any kind of advice is much appreciated.
I have a saved ODBC connection called Northwind.
When I use the following code:
Code:
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = OpenDatabase("Northwind")
Set rs = db.OpenRecordset("Customers", dbOpenDynaset, dbSeeChanges)
I receive an error saying Northwind couldn't be located.
Images are attached.
Am I missing anything?
Any kind of advice is much appreciated.