Hello once again!

I'm working on developing a macro for Outlook that connects to an SQLServer and updates a database everytime a mail is received. However, I need to apply this macro to a secondary account on Outlook. When I try to do this, the VB Editor gives me an error. What is the right way to do this? Do I need to change permissions or something?