Maybe object code of the form is corrupted. Try to recompile form
COMPILE FORM myform
>I am getting an error for using this RETURN = .F. after the message box at the bottom.
>
>the error is (1924 - opened form is not an object.)
>
>when a person has no access to form then this code should not allow the user into the form.
>there i am getting this error.
>
>
< snip >
--sb--