I am running Access 2007. I have an .mdb database, and it works fine.
BUT, I am unable to make any change whatsoever to the VBA code without causing an error when I try to open the database. For example, I view the code for Form_frmMenu. Inside a function, on a blank line, I enter the code x=1. I save the form module, close the database. When I try to launch the database I get the message "An error has occurred trying to open...".
I don't think I've corrupted my copy of Access 2007 because I can open the Northwind database that Microsoft provides, make changes to the VBA code, save it and run it successfully.
So, to summarize, in this one particular database, if I enter any VBA code whatsoever, the database will not launch.
I hope someone can help.
Thank you.
BUT, I am unable to make any change whatsoever to the VBA code without causing an error when I try to open the database. For example, I view the code for Form_frmMenu. Inside a function, on a blank line, I enter the code x=1. I save the form module, close the database. When I try to launch the database I get the message "An error has occurred trying to open...".
I don't think I've corrupted my copy of Access 2007 because I can open the Northwind database that Microsoft provides, make changes to the VBA code, save it and run it successfully.
So, to summarize, in this one particular database, if I enter any VBA code whatsoever, the database will not launch.
I hope someone can help.
Thank you.