What does the Connection string say
also I could never get ASP (databaseing) and Dreamweaver working
I just write the code them test it in explorer as if live.
one thing I do is turn on IIS in XP use that as my testing computer
I have a OpenDB.inc
Code:
<!--#include file="adovbs.inc"-->
<%
Dim DB ,DBPath
DBPath = server.mappath("orders\Data.mdb")
'RESPONSE.WRITE DBPATH
Dim connstring 'conection string
connstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBPath & ";"
'RESPONSE.WRITE "** >>>>" & connstring
I have
<!--#include file="OpenDB.inc"-->
at the top of every page when I want to talk to the database
Then to write/get data I just do
SET RS = Server.CreateObject("ADODB.Recordset")
SQL =""
SQL = SQL &"SELECT Prod.*"
SQL = SQL &" FROM Prod "
SQL = SQL &" WHERE (((Prod.Sheet)='" & whereThis & "'))"
SQL = SQL &" ORDER BY Prod.Type;"
now let open it
RS.open SQL , connstring , adOpenStatic , adLockPessimistic
the HARDNEST thing to get right is the connection String write
that openDB.inc I wrote about 5 year ago and all i have to change now is the DBPATH and it works every time
as long as the database is in the same place as test / live everything should work.