How to compile a program?

  • Thread starter Thread starter tom
  • Start date Start date
T

tom

I have an application that originally written in
Access 97. When the application starts there
is a check to see whether the program is compiled.

I tracked down the code and it is as follows:

x = IsCompiled()
If x = False Then

On access 97, I would run msaccess /decompile
at the windows run menu and that would solve
the problem.

I have both Access 97 and 03 running on this computer
and the above msaccess command starts 97.
 
There is no IsCompiled function built into Access (although there's an
IsCompiled property of the Application object).

That implies that there must be code in your application for the IsCompiled
function. It's probably explicitly call Access 97.
 
Hi, Tom.
On access 97, I would run msaccess /decompile
at the windows run menu and that would solve
the problem.

The /decompile switch removes the compiled code version from the 11 versions
of code in your database. It doesn't compile the code. To compile the
code, open the VB Editor in Access 2003 and select the Debug -> Compile
<DatabaseName> menu. In Access 97, open a code module and select the
Debug -> Compile <DatabaseName> menu (if I recall correctly).

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blog: http://DataDevilDog.BlogSpot.com
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.
 
I used the object browser and searched through
the code and I cannot find an iscompiled function.

I am thoroughly confused.
 
What happens if you highlight IsCompiled, right-click on it and choose
Definition?
 
Odd, because if it is, you're missing the reference to Application (plus the
parentheses would be incorrect)
 
Back
Top