Hi! I just started to work with data acces pages and I need some help. I have a database(mdb) in a web server and the users will access it by internet(IE) using data access pages. I have no problems to access data, add, edit or delete. The probem happens when I try to use a button to print a report. I've been getting this error message, no matter what I try: Microsoft Access can't open the database because it is missing, or opened exclusively by another user.
The code I'm using is:
-------------------------------------
<SCRIPT language=vbscript event=onclick for=ButtonPrintEnvelope>
<!--
Dim objAcc
Dim strcodecustomer
strcodecustomer = MSODSC.DataPages(0).Recordset.Fields("ID")
Set objAcc = CreateObject("Access.Application")
objAcc.OpenCurrentDatabase "C:\Database\Test.mdb"
objAcc.DoCmd.OpenReport "Envelope", , , "id = " & strcodecustomer
-->
</SCRIPT>
-------------------------------------
Does anybody know what I'm doing wrong? Maybe it is the way I'm expressing the path of the database, but I've tried everything I know.
PLEASE HELP!
Thanks in advance,
Kiko