P
Primoz Bradac
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
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