I don't know how to execute a VBA. It's like Access doesn't recognize the VBA I wrote. It only wants to recognize macros created by adding that out of the box functions. How do I write VBA code so it is available to add it to the RunMacro? I just want to have the VBA code execute when the Access database is opened. I ran the code and the code works just fine.