Code for rename form

atisz

Registered User.
Local time
Today, 13:27
Joined
Apr 5, 2005
Messages
96
On the form On load event I have code verifying if a condition is true or not. If the condition is true, it does some things, now I want also to rename a form if the condition is true. So, I have created a macro to do this. But if I open the DB for second, third.... time and the condition is still true the macro can't find the specifyed form and brings up an error message wich gives to user the possibility to Debug. This way he has access to the code , and I don't want this to hapen.
Can I do this by using code and keeping the user away from code?
Thanks,
Attila
 
Best solution is to test for the presence of the form before calling it, can you paste your code so that we can see what you are doing?

Peter
 

Users who are viewing this thread

Back
Top Bottom