Problem with workspace procedures from VBA book
I am having difficulty with the workspace procedure listed in appendix I of access 2003 VBA book when I convert it into a procedure as part of a module. There are about 30 forms which will use it so it made sense to put it in a module rather than a class module.
i get the error 2460 or 2465 when i click OK
The code is copied exactly, however its the form variable that i am having problem with. I am trying to use it in access 2000 as that's the version i have to work with.
I need to be able to use it with subforms as well as within a tabcontrol.
public sub workspace(ctl as control fm as form)
The only item the form variable it seems to accept when called is Me
This is probably a basic point that i'm missing. I've looked around through my myriad of books for examples to see if i can spot my mistake, so that i can carry on writing the code for other forms.
|