>Hi Everyone:
> oAccess = CreateObject("Access.Application")
> oAccess.Visible = .T.
> This codes does work but the access only stays on for a second and it closes.
> Is there I should be doing more
>MA
Your oAccess variable is going out of scope - usually happens when the method or procedure is done and the variable is Local or Private.
How are you running this code? Is it in a procedure you call from the command window, or a method on a class or form?
If it's in a procedure called from the command window, declare oAccess as a public variable, then it will stay up.
If it's in a class or form method, instead of a variable, add a property to the class or form called oAccess and instantiate it with
this.oAccess = CreateObject("Access.Application")
Insanity: Doing the same thing over and over and expecting different results.