I am using currentDb method to get instance of database in VBA excel macro. I have added reference as well but CurrentDb method is giving error "Variable Not Defined"
Below is code
Dim Db As DAO.Database
Db = CurrentDb
Could you please help me on this
CurrentDbis an Access method, so it's not going to work by itself in Excel VBA. Maybe if you posted more code someone might have a suggestion. With only two lines not much to go on.