Forum Moderators: phranque
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
-Corey
I still didn't figure out what is going on. I'm sure the database is not open when I try to print the report.
I'm pretty sure that the problem is finding the database (path). We don't have physical access to the server (only remote access). Does anybody have an idea on how to do that?
Thanks in advance.
Kiko
Access is great for secretaries keeping their mailing lists for mail merge, but it's a horrible product for working with on websites, the sooner you switch to a real db, the happier you'll be.