This is the first time I've tried to create an ADO recordset in excel. I've done so in access with success. I tried to do the same steps in Excel, but it errors out with variable not defined at the following code
It highlights CurrentProject. con is Dim as Connection.
Any idea what I'm doing wrong
Code:
Set con = CurrentProject.Connection
It highlights CurrentProject. con is Dim as Connection.
Any idea what I'm doing wrong