Re: Close Access From An ASP Page
- From: "Bill Barber" <BillBarber@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Jan 2006 10:56:27 -0800
"Bob Barrows [MVP]" wrote:
> Bob Barrows [MVP] wrote:
> > Bill Barber wrote:
> >> I have the following code in Which I must Open Access, run a Macro
> >> and then Close Access. The Problem is that this code is not closing
> >> Access. Windows XP with Office 2000 and the latest Service Packs
> >> have been installed
> >>
> >>
> >> Set objAccess = Server.CreateObject("Access.Application")
> >
> > I assume you've read all the caveats about automating Office
> > applications in server code:
> > http://support.microsoft.com/default.aspx?scid=kb;en-us;257757
> >
> >> objAccess.Visible = False
> >> objAccess.OpenCurrentDatabase
> >> "C:\INetPub\wwwRoot\Remote\MyDatabase.mdb" objAccess.DoCmd.RunMacro
> >> "NameOfMacro"
> >> objAccess.CloseCurrentDatabase
> >> objAccess.Quit 2 ' 2 = acQuitSaveNone
> >> Set objAccess = Nothing
> >>
> >> Does anyone know what I am doing Wrong?
> >>
> > Try leaving the application visible. Are you getting the Security
> > Warning dialog when the database opens? There is nobody to respond to
> > that dialog on the server ...
>
> If you are getting the security warning dialog, you can disable it by
> setting the security level to Low in Tools|Macros|Security
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
I am not getting the warning, any student has access to the server.
.
- Follow-Ups:
- Re: Close Access From An ASP Page
- From: Bob Barrows [MVP]
- Re: Close Access From An ASP Page
- References:
- Close Access From An ASP Page
- From: Bill Barber
- Re: Close Access From An ASP Page
- From: Bob Barrows [MVP]
- Re: Close Access From An ASP Page
- From: Bob Barrows [MVP]
- Close Access From An ASP Page
- Prev by Date: Re: Close Access From An ASP Page
- Next by Date: Re: how do you run an sql script using vbscript?
- Previous by thread: Re: Close Access From An ASP Page
- Next by thread: Re: Close Access From An ASP Page
- Index(es):
Relevant Pages
|