Greetings.
I have an unusual VBA problem within the Access 2000 application that my team and I have created. Let me first explain the app and environment: we have created a multi-user (not client/server) app that is starting to be used in multiple offices, each office having a Windows NT server and workstations running W2K. Each workstation in each office has an Access 2000 .MDE “local” program that links to tables in an .MDB “server” file on their server. As you would expect, the .MDB “server” file on the server contains only tables, while the “local” .MDE file on the workstation contains VBA code, form definitions, report definitions and some temporary tables.
Now the problem: One of the offices described an unusual error while running the app from a workstation. Whenever they clicked on a command to take them to form X, the form would display in a window but unusual errors appeared, and none of the features or commands on that form functioned at all (I’ll explain more error details later). We tried recreating the errors in our development and test environment using the same .MDE file they were using and then tried with newer .MDE files, but could not intentionally recreate it. We continued creating newer updated versions of the “local” .MDE file to distribute to the offices to use (wit other bug fixes), and one day found an .MDE we created a short time ago that had the error. This time, however, every office and test environment that uses this particular .MDE shows the errors. (Unfortunately, we do not know of anything different when that .MDE was created from the other times we’ve created them.) But just yesterday, we created a new .MDE, tested it, it seemed to work okay, then sent it to some offices, and one (but not all) of them reported the error. This newest version does not show the errors in our test environment, and at no times has the error appeared when using the .MDB version of the “local” file (the one we use to create the .MDE) in our test environment. Strange, huh?
So here’s some more details on the errors that happen when using the .MDE that causes the errors. The app launches and loads normally. From the main form that appears a user can click a button to display form X. The form will display in a window, but none of the VBA code that should run when the form is loaded [in Sub Form_Load()] gets executed. Also, once the form is displayed and the user does something with a control, any of the VBA code that should run (i.e., is attached to an event for the control the user manipulates) is not executed. Instead the following error is displayed:
“Object or class does not support the set of events.”
These errors only happen on form X, and once the form is closed, the rest of the app seems to function normally.
We’re a bit baffled as to how or why the form gets messed up and does not execute the VBA code. Again, we’ve only noticed this problem in only certain instances of an .MDE that we created, never in the .MDB that is used to create the .MDE.
Does anyone have any idea what might be going on here????
Thank you!
Jim.
I have an unusual VBA problem within the Access 2000 application that my team and I have created. Let me first explain the app and environment: we have created a multi-user (not client/server) app that is starting to be used in multiple offices, each office having a Windows NT server and workstations running W2K. Each workstation in each office has an Access 2000 .MDE “local” program that links to tables in an .MDB “server” file on their server. As you would expect, the .MDB “server” file on the server contains only tables, while the “local” .MDE file on the workstation contains VBA code, form definitions, report definitions and some temporary tables.
Now the problem: One of the offices described an unusual error while running the app from a workstation. Whenever they clicked on a command to take them to form X, the form would display in a window but unusual errors appeared, and none of the features or commands on that form functioned at all (I’ll explain more error details later). We tried recreating the errors in our development and test environment using the same .MDE file they were using and then tried with newer .MDE files, but could not intentionally recreate it. We continued creating newer updated versions of the “local” .MDE file to distribute to the offices to use (wit other bug fixes), and one day found an .MDE we created a short time ago that had the error. This time, however, every office and test environment that uses this particular .MDE shows the errors. (Unfortunately, we do not know of anything different when that .MDE was created from the other times we’ve created them.) But just yesterday, we created a new .MDE, tested it, it seemed to work okay, then sent it to some offices, and one (but not all) of them reported the error. This newest version does not show the errors in our test environment, and at no times has the error appeared when using the .MDB version of the “local” file (the one we use to create the .MDE) in our test environment. Strange, huh?
So here’s some more details on the errors that happen when using the .MDE that causes the errors. The app launches and loads normally. From the main form that appears a user can click a button to display form X. The form will display in a window, but none of the VBA code that should run when the form is loaded [in Sub Form_Load()] gets executed. Also, once the form is displayed and the user does something with a control, any of the VBA code that should run (i.e., is attached to an event for the control the user manipulates) is not executed. Instead the following error is displayed:
“Object or class does not support the set of events.”
These errors only happen on form X, and once the form is closed, the rest of the app seems to function normally.
We’re a bit baffled as to how or why the form gets messed up and does not execute the VBA code. Again, we’ve only noticed this problem in only certain instances of an .MDE that we created, never in the .MDB that is used to create the .MDE.
Does anyone have any idea what might be going on here????
Thank you!
Jim.