amorosik
Active member
- Local time
- Today, 20:31
- Joined
- Apr 18, 2020
- Messages
- 608
I have a project created with Access 2013, 32-bit
I normally use this procedure to export the entire project to a text file and archive it (VCS_ImportExport.bas / ExportAllSource)
After the last export, I also followed the reverse procedure, and then tried recreating the project from the newly exported text files (VCS_ImportExport.bas / ImportProject)
The import was successful, and I was able to compact the created file
However, when I try to compile it, it seems not to recognize variables in some standard modules that are actually present and defined "Public gbDebug As Boolean" in the standard module modVariabiliGlobali.
I have checked the presence of the variable in the modVariabiliGlobali module several times, and it is indeed present
But within other modules (at the beginning of each standard module there is Option Explicit), it is not recognized.
I also tried defining it as Global, but there was no difference.
If I delete the Option Explicit line at the beginning of the module modFtpServer using the variable, then control passes and compilation continues.
Note that this procedure for exporting and completely rebuilding an Access project is something I've been doing the same way for several years, and this is the first time it didn't restart on the first try.
The question is: why is the gbDebug variable used in the modFtpServer standard module not recognized? (error: Variable not defined)
I normally use this procedure to export the entire project to a text file and archive it (VCS_ImportExport.bas / ExportAllSource)
After the last export, I also followed the reverse procedure, and then tried recreating the project from the newly exported text files (VCS_ImportExport.bas / ImportProject)
The import was successful, and I was able to compact the created file
However, when I try to compile it, it seems not to recognize variables in some standard modules that are actually present and defined "Public gbDebug As Boolean" in the standard module modVariabiliGlobali.
I have checked the presence of the variable in the modVariabiliGlobali module several times, and it is indeed present
But within other modules (at the beginning of each standard module there is Option Explicit), it is not recognized.
I also tried defining it as Global, but there was no difference.
If I delete the Option Explicit line at the beginning of the module modFtpServer using the variable, then control passes and compilation continues.
Note that this procedure for exporting and completely rebuilding an Access project is something I've been doing the same way for several years, and this is the first time it didn't restart on the first try.
The question is: why is the gbDebug variable used in the modFtpServer standard module not recognized? (error: Variable not defined)