If each of the people viewing the DAP have access on their
local machine the following snippet will work just fine.
If not, you *can* have the object created on a server
using server-side automation (well documented in the MS
KB) but it requires sometimes tempermental DCOM and *may*
be a licensing issue as well.
-ed cetron
ecetron@<nospam>tili.com
<SCRIPT language=vbscript event=onclick for=Command0>
<!--
Dim strFilter
Dim objAccess
'MsgBox("Onclick")
'MsgBox(document.all.item("defect",0).value)
strFilter = "[Defects.Defect] = " &
document.all.item("defect",0).value
'MsgBox(strFilter)
Set objAccess = createObject("Access.Application")
'MsgBox("Object created")
'objAccess.Visible = True
'MsgBox("Access Visible")
dbStr = "\\njc1\...\tp.mdb"
objAccess.OpenCurrentDatabase dbStr
'MsgBox("Database Open")
objAccess.Docmd.OpenReport "Full
Report",,,strFilter
objAccess.Quit 'close access down
'MsgBox("Object destroyed")
Set objAccess = nothing
-->
-----Original Message-----
I want to place a command button on a data access page
which opens an Access report. I don't want to re-create
the report as a data access page as it looks like a dog's
breakfast.
is this possible?
.