Re: Access snapshots with VBScript
From: MacDermott (macdermott_at_NoSpam.com)
Date: 09/22/04
- Next message: MacDermott: "Re: Clearing textboxes on subforms"
- Previous message: Christine: "URGENT PLEASE! - Email using DoCmd.SendObject when Outlook is not running"
- In reply to: Primoz Bradac: "Access snapshots with VBScript"
- Next in thread: Primoz Bradac: "Re: Access snapshots with VBScript"
- Reply: Primoz Bradac: "Re: Access snapshots with VBScript"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 07:32:08 -0400
You might try using
oAccess.Quit
instead of
oAccess.Close
Do all your PCs have the same version of Access? Same patch level?
- Turtle
"Primoz Bradac" <primoz.bradac@bfro.uni-lj.si> wrote in message
news:MPG.1bbb68f34f5bbfed989685@msnews.microsoft.com...
> I apologize for this article not being quite in line with the name of
> the group but I think it is the closest...
>
> I make a snapshor (of a report) with a (VBScript) script which runs as
> follows:
> ------
> Const acOutputReport = 3
> Const acOutputFormat = "Snapshot Format"
> Const db = "C:\_Temp\Auto\MyDB.mdb"
> Const snap = "C:\inetpub\wwwroot\test\rptKatalog.snp"
> Dim oAccess
>
> Set oAccess = GetObject(db,"Access.Application")
> oAccess.DoCmd.OutputTo acOutputReport, "rptKatalog", acOutputFormat,
> snap
>
> oAccess.Close
> set oAccess = Nothing
> ------
> The script runs OK but one problem I have is that after running it the
> data base seems to stay locked (there is MyDB.ldb in the directury and I
> cant open MyDB.mdb by doubleclicking it any more)
> What statement did I forget in my script?
>
> The second question is:
>
> If I set acOutputFormat to "Snapshot Format (*.snp)" in above script
> which is what I get if I do ?acFormatSNP in the Immediate Window of the
> VBE in Access, in at least one computer this "format" is not recognized
> and I have to change it to the above value ("Snapshot Format").
>
> I'd really appreciate any explanation.
> TIA,
> Primoz
- Next message: MacDermott: "Re: Clearing textboxes on subforms"
- Previous message: Christine: "URGENT PLEASE! - Email using DoCmd.SendObject when Outlook is not running"
- In reply to: Primoz Bradac: "Access snapshots with VBScript"
- Next in thread: Primoz Bradac: "Re: Access snapshots with VBScript"
- Reply: Primoz Bradac: "Re: Access snapshots with VBScript"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|