MichaelRed
Programmer
I have read many of the threads reefering to this. I undersdand that they generally refer to the scope of the variable. Brief statement of this situation:
1.[tab]I have searched the APP for type declarations there is only ONE. It is in a code (not a form) module.
2.[tab]I have traced it through the code where it is set (this is a form module) - however the form is (and remains) open throughout the APP, and I can see the value and it is the expected value at the call to the next procedure.
3.[tab]At the FIRST executable statement of the called procedure in a code module, the value has been destroyed (was 3, now 0).
4.[tab]Although several of the threads I read suggested alternatives to the use of the Public type statement, both the literature and many of the same threads noted that the process, as described above shoud work.
5.[tab]Somewhat related to this, I noted that an additional property of typed variables "Shared" was useful / required. I attempted to include this, however MS Access (ver 2003) deems it 'bothersome' and removes it IMMEDIATLY after moving focus to ANY where else (another module / procedure / line / form ...).
So does anyone have any suggestions?
MichaelRed
1.[tab]I have searched the APP for type declarations there is only ONE. It is in a code (not a form) module.
2.[tab]I have traced it through the code where it is set (this is a form module) - however the form is (and remains) open throughout the APP, and I can see the value and it is the expected value at the call to the next procedure.
3.[tab]At the FIRST executable statement of the called procedure in a code module, the value has been destroyed (was 3, now 0).
4.[tab]Although several of the threads I read suggested alternatives to the use of the Public type statement, both the literature and many of the same threads noted that the process, as described above shoud work.
5.[tab]Somewhat related to this, I noted that an additional property of typed variables "Shared" was useful / required. I attempted to include this, however MS Access (ver 2003) deems it 'bothersome' and removes it IMMEDIATLY after moving focus to ANY where else (another module / procedure / line / form ...).
So does anyone have any suggestions?
MichaelRed