When I need to start another instance of Access from within Access is when I
get the problem. I can't find a way to bypass the Access logon to keep this
process as transparent as possible.
Any suggestions?
Post here or mail to hit...@csi.com.
Thanks in advance
You can use /user and /pwd command line option.
--
Valera
val...@mbh.ru
Mike Jackson wrote in message ...
Valera wrote in message <#ZnNwUyq...@uppssnewspub05.moswest.msn.net>...
Dim lngReturn As Long
Dim objAccess As Access.Application
lngReturn = Shell("C:\Program Files\Microsoft
Office\Office\MSACCESS.EXE " _
& "/wrkgrp c:\sectalk\secsys.mdw /User moi /Pwd mypwd
/Nostartup")
DoEvents
Set objAccess = GetObject(, "Access.Application")
objAccess.OpenCurrentDatabase "c:\sectalk\secapp.mdb", False
objAccess.DoCmd.OpenReport "rptTopTenCustomers", acViewPreview
Set objAccess = Nothing
On Thu, 9 Jul 1998 08:30:08 -0700, "Mike Jackson" <hit...@csi.com>
wrote:
I think you are right here. Do you realy need to open new instance of
access, may be working with workspace will be enought for you. Check
workspace in help.
--
Valera
val...@mbh.ru
Mike Jackson wrote in message ...
On Thu, 9 Jul 1998 21:17:12 -0700, "Mike Jackson" <hit...@csi.com>
If I start an instance of access from within Access (started via command
line options joined to a secure workgroup), export an object to this 2nd
instance (a form), are there any useable permissions attached to that form
in the second instance?
I'm trying to put a form with a timer event in the 2nd instance, then close
the first instance before the timer expires in the 2nd. Once the timer
expires in the 2nd (now only) instance of access, the original .mdb is
compacted, after which I restart the main app.
I know all this works fine in a non-secure environment, but I'm not sure if
the current user's permissions will be in effect in the second instance.
I have a feeling I'm going to have to manipulate the workgroup and user for
the second instance before this works???
Thanks..
mary chipman wrote in message <35a7d8df...@207.68.144.15>...
>Shell() is how you run other apps from inside VBA. it won't call a DOS
>box unless you use command.com.
>
>On Thu, 9 Jul 1998 21:17:12 -0700, "Mike Jackson" <hit...@csi.com>
>wrote:
>
On Mon, 13 Jul 1998 19:08:01 -0700, "Mike Jackson" <hit...@csi.com>
wrote:
>Sorry, got stupid there. On a somewhat related topic (security).....
>
>If I start an instance of access from within Access (started via command
>line options joined to a secure workgroup), export an object to this 2nd
>instance (a form), are there any useable permissions attached to that form
>in the second instance?
>
>I'm trying to put a form with a timer event in the 2nd instance, then close
>the first instance before the timer expires in the 2nd. Once the timer
>expires in the 2nd (now only) instance of access, the original .mdb is
>compacted, after which I restart the main app.
>
>I know all this works fine in a non-secure environment, but I'm not sure if
>the current user's permissions will be in effect in the second instance.
>
>I have a feeling I'm going to have to manipulate the workgroup and user for
>the second instance before this works???
>
>Thanks..
>
>mary chipman wrote in message <35a7d8df...@207.68.144.15>...
>>Shell() is how you run other apps from inside VBA. it won't call a DOS
>>box unless you use command.com.
>>
>>On Thu, 9 Jul 1998 21:17:12 -0700, "Mike Jackson" <hit...@csi.com>
>>wrote:
>>