I'm in middle of development and I find myself losing reference to a declared object which is supposed to stay alive for the application's lifetime. It's currently declared as a public variable.
Now, whenever there's an error, it loses reference, but that's because I am still in development and need to do some more tests, but there are also cases where leaving the application idle for a period causes Access to forget the reference.
I'd have put it in a class module so it could at least clean after itself if the reference is lost, but this would be *lot* extra work just to declare an object, then call the procedures as a method of that object, and besides I don't want more than one instance of that object anyway.
Does anyone know of a better way to hold that object in memory a bit more persistently than a public variable?
Now, whenever there's an error, it loses reference, but that's because I am still in development and need to do some more tests, but there are also cases where leaving the application idle for a period causes Access to forget the reference.
I'd have put it in a class module so it could at least clean after itself if the reference is lost, but this would be *lot* extra work just to declare an object, then call the procedures as a method of that object, and besides I don't want more than one instance of that object anyway.
Does anyone know of a better way to hold that object in memory a bit more persistently than a public variable?