i am tryin to view info on 'accommodation.asp' file using the 'mbdata.mdb' database, and in the 'accommodation' part.
if u get me.....
anyway, i am having the error:
ADODB.Connection.1 error '800a0bb9'
The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.
/duellsy/a/accommodation.asp, line 23
can u please tell me how to fix this?
here is my asp script:
<head>
<SCRIPT LANGUAGE="JavaScript">
function dropdownmenu(item){
window.location.href=item.options[item.selectedIndex].value;}
</SCRIPT>
<font size="4"><b>
Other related searches </b><form name="menu1" align="left">
<select name="otherpages" size=1
onchange="dropdownmenu(document.menu1.otherpages)">
<OPTION VALUE="*">Select
<OPTION VALUE="../m/motels.html">Motels
</select>
<blockquote><font size="4">
<%
Set MyConn = Server.CreateObject("ADODB.Connection"
MdbFilePath = Server.MapPath("mbdata.mdb"
MyConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
SQL_query = "SELECT * FROM accommodation"
Set RS = MyConn.Execute(SQL_query)
DO WHILE NOT RS.EOF
%>
Response.Write=(RS("Name")<br>
Response.Write=(RS("Address")<br>
Response.Write=(RS("Town")<br>
Response.Write=(RS("Ph")<br>
Response.Write=(RS("Mob")<br><br>
<%
RS.MoveNext
LOOP
%>
</BODY>
</HTML>
if u get me.....
anyway, i am having the error:
ADODB.Connection.1 error '800a0bb9'
The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.
/duellsy/a/accommodation.asp, line 23
can u please tell me how to fix this?
here is my asp script:
<head>
<SCRIPT LANGUAGE="JavaScript">
function dropdownmenu(item){
window.location.href=item.options[item.selectedIndex].value;}
</SCRIPT>
<font size="4"><b>
Other related searches </b><form name="menu1" align="left">
<select name="otherpages" size=1
onchange="dropdownmenu(document.menu1.otherpages)">
<OPTION VALUE="*">Select
<OPTION VALUE="../m/motels.html">Motels
</select>
<blockquote><font size="4">
<%
Set MyConn = Server.CreateObject("ADODB.Connection"
MdbFilePath = Server.MapPath("mbdata.mdb"
MyConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
SQL_query = "SELECT * FROM accommodation"
Set RS = MyConn.Execute(SQL_query)
DO WHILE NOT RS.EOF
%>
Response.Write=(RS("Name")<br>
Response.Write=(RS("Address")<br>
Response.Write=(RS("Town")<br>
Response.Write=(RS("Ph")<br>
Response.Write=(RS("Mob")<br><br>
<%
RS.MoveNext
LOOP
%>
</BODY>
</HTML>