Re: Close Access From An ASP Page
- From: "Bill Barber" <BillBarber@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Jan 2006 10:52:28 -0800
"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 ...
>
> --
> 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"
>
The server is used for Homework Assignments, there is very little on it. I
do understand the hazzards.
Tried both ideas, No Go. This has been driving me crazy. It worked at one
time and then something happened.
>
.
- 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]
- Close Access From An ASP Page
- Prev by Date: Word 2003 global template?
- Next by Date: Re: Close Access From An ASP Page
- Previous by thread: Re: Close Access From An ASP Page
- Next by thread: Re: Close Access From An ASP Page
- Index(es):
Relevant Pages
|