That shouldn't make a difference. I can't think of any other way to run code when a project gets built. Are you sure the tables aren't open before you start the build?
>Thanks, but my Project Class isn't checked. Maybe I'll try checking it and unchecking it to see if that helps.
>
>Thanks,
>
>Jerry
>
>
>
>>>I am using VFP9 SP2.
>>>
>>>I inherited a VFP9 application. When I build the project I do this: BUILD EXE myproj.exe FROM myproj.pjx RECOMPILE
>>>
>>>Everything compiles fine and the EXE is created. The thing I don't get is that each time I do this, several tables are open after the EXE is built. How do you make a VFP project run code to open tables after building an EXE? And how do I stop this?
>>>
>>>Thanks,
>>>
>>>Jerry
>>
>>Check if your project has a hook associated with it. Right click on the project manager and choose "Project Info", then look at the "Project Class" check box and the class name field next to it, if it is checked.