I'm tring to print a report from a Access database from web page. The following code prints the report but I would like to hide the Access application from showing on screen objAcc.visible does not seem to work. Any ideas would be greatly appriciated.
<SCRIPT language=vbscript event=onclick for=command0>
Set objAcc = CreateObject("Access.Application")
objAcc.visible=false
objAcc.OpenCurrentDatabase "\\Kscboc2\Share\Jbosc\Rpi\Databases\FERB.mdb"
objAcc.DoCmd.OpenReport "AGENDA"
objAcc.Quit
Set objAcc = Nothing
</SCRIPT>
<SCRIPT language=vbscript event=onclick for=command0>
Set objAcc = CreateObject("Access.Application")
objAcc.visible=false
objAcc.OpenCurrentDatabase "\\Kscboc2\Share\Jbosc\Rpi\Databases\FERB.mdb"
objAcc.DoCmd.OpenReport "AGENDA"
objAcc.Quit
Set objAcc = Nothing
</SCRIPT>