schwankieog
Programmer
i have a basic asp page i am trying to run on a server, the code executes fine the first time you access the page, then when you hit refresh or try to send new data within 5 minutes of the first access i receive an undefined error. have no idea what is causing this, but i am pretty sure it is the server. just wondering if any one has encountered this before and if so how do you get around it?
here is the code
<%
Set conn = Server.CreateObject("ADODB.Connection"
'set the path to the database on this line
mdbname = "InternshipJXG.mdb"
datastring = "DBQ=" & Server.MapPath(mdbname)
conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & datastring
query = "SELECT * FROM Company"
set bill = conn.execute(query)
While not bill.eof
for each blah in bill.fields
response.write blah.value & " "
next
response.write "<br>"
bill.movenext
wend
conn.close
%>
any help is appreciated
here is the code
<%
Set conn = Server.CreateObject("ADODB.Connection"
'set the path to the database on this line
mdbname = "InternshipJXG.mdb"
datastring = "DBQ=" & Server.MapPath(mdbname)
conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & datastring
query = "SELECT * FROM Company"
set bill = conn.execute(query)
While not bill.eof
for each blah in bill.fields
response.write blah.value & " "
next
response.write "<br>"
bill.movenext
wend
conn.close
%>
any help is appreciated