Hello again. How can I direct an access database from my asp application? I am afraid that the way is not the same as is from word or excel (OLE automation).I tried to use the code that I have written, in my asp page, but it stopped in third line (db.OpenCurrentDatabase...) with none specific error message from IIS. However, the specific line run perfectly under word and excel vba.Why?
db.OpenCurrentDatabase Path & "\Data.mdb", False
db.DoCmd.OutputTo acOutputReport, "rptSomeReport",acFormatSNP, Path & "rptSomeReport.snp", True
Here is something I put together about ASP that hopefully might help somehow.
You and others can have access to a database hosted on the Web from any location that has a browser with an Internet connection.
The Web database concept makes sense if you and your people want to do work in various locations in or outside the office and still be "plugged" in.
For example you could have employees enter timesheets or have sales reps log their contacts. Or perhaps you'd like customers to be able to check the status of their orders online without having to call the company.
If you want a Web database, typically what would happen is that a database such as Access or MySQL (basically just consisting of tables) would be put on the Web.
Dynamic Web pages are similar in many ways to regular HTML pages. But they are "live" because the user can read from and write to information in the database. An example where you can login and add, edit, or view fictional customers and invoices is at http://www.bullschmidt.com/login.asp
Not all Web hosts will handle dynamic Web pages but many do. The Web hosts that can handle ASP pages usually have a Windows 2000 or Windows 2003 operating system running an IIS Web server.
And the following newsgroup is good:
Or for a "quick and dirty" generic ASP open source solution to putting databases on the Web (often works well for the admin area of a Web site which doesn't need to look too unique) that just requires setting up a configuration page for each table or query and uploading the database to the Web as long as there is an autonumber field in each table (and you'll probably also separately want to create login capabilities), perhaps try something like this:
GenericDB by Eli Robillard http://www.genericdb.com and then click on the Tips link to see an example
Sorry but this answer maybe refer to other question. My question was very specific. And something else, the second line (set db=Server.CreateObject("Access.Application")) in my code it works. I checked that from windows task manager in Processes tab where I saw that access instant was running when my asp page started (I run my asp application on my PC with winXP and IIS 5.0).
I have an objection about the "OLE automation and ASP are totally different things" sentence that maybe helps in our conversation.
They are really different things, but this doesn't mean that it can not exist collaboration between them. Furthermore, the ASP technology became very popular for that same reason. The ability, that asp have, to make collaborations between different technologies. To prove it I say that the OLE automation working perfectly between asp and excel. I have written an xl code in my asp page and it works with any problem. It is very simple, just create an xl instance with server.createObject("Excel.Application") and then you can fill cells, execute macro and do anything in xl from asp code. I want to manage, with the same way, the access built-in statements and objects like DoCmd from asp to export a report to .snp format (snapshot). My question is very clearly.