Hi, this is my first post here, so I hope I'm doing it right.
After converting an Access 2007 accdb database to accde, the vba code in my modules runs OK, but the code in my class objects (forms) wont run. In these cases, I always get the error message "The expression On Dbl Click you entered as the event property setting produced the following error: Can't perform operation since the project is protected" (or something similar depending on the particular event).
Please note that I don't get any errors when running the accdb file.
I don't understand why some of the code works, and some doesn't. I have searched Google for several days to find a solution, but I can't find this situation.
I am converting the front end file only to accde, not the back end tables. I do have a custom ribbon xml script in table UsysRibbons, which is located in the front end (because it doesn't work if I put it in the back end).
My files are all in trusted locations, I compile immediately before making the accde file, I've checked my References, I've de-compiled and compiled, I've copied all objects to a new (clean) database, I've even tried it with mdb and mde. Same problem every time.
My references are:
Visual Basic For Applications
Microsoft Access 12.0 Object Library
OLE Automation
Microsoft Office 12.0 Access database engine Object
Microsoft Office 12.0 Object Library
Microsoft Scripting Runtime
Any suggestions would be greatly appreciated.
After converting an Access 2007 accdb database to accde, the vba code in my modules runs OK, but the code in my class objects (forms) wont run. In these cases, I always get the error message "The expression On Dbl Click you entered as the event property setting produced the following error: Can't perform operation since the project is protected" (or something similar depending on the particular event).
Please note that I don't get any errors when running the accdb file.
I don't understand why some of the code works, and some doesn't. I have searched Google for several days to find a solution, but I can't find this situation.
I am converting the front end file only to accde, not the back end tables. I do have a custom ribbon xml script in table UsysRibbons, which is located in the front end (because it doesn't work if I put it in the back end).
My files are all in trusted locations, I compile immediately before making the accde file, I've checked my References, I've de-compiled and compiled, I've copied all objects to a new (clean) database, I've even tried it with mdb and mde. Same problem every time.
My references are:
Visual Basic For Applications
Microsoft Access 12.0 Object Library
OLE Automation
Microsoft Office 12.0 Access database engine Object
Microsoft Office 12.0 Object Library
Microsoft Scripting Runtime
Any suggestions would be greatly appreciated.
Comment