ok so i've made the uploading form
I've made that table Called animals, i didnt create the others because i figured out it has no use? (tell me if im wrong, since the Animals table contains animaltype / adoptionstatus anyways...)
Now, im trying to make the ASP form to display dogs only on the dogs page like u adviced, and i keep getting an annoying error ><
This is the form:
Code:
<%
sSQL = "SELECT fileID,Desc FROM Animals WHERE adoptionstatus=1 AND animaltype=1 ORDER BY fileID DESC"
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("user list.mdb")
Set oRS = oConn.Execute (sSQL) ' Line 45
If Not oRS.EOF Then
%>
<table align="center" style="width: 570px;margin-bottom:10px;" border="5" >
<%
Do While Not oRS.EOF
sImage = oRS("FileID")
sDesc = oRS("Desc")
%>
<tr>
<td valign="middle" align="center"><a href="Database_Download.asp?FileID=<%=sImage%>"<img border="0" width="290" height="370" src="Database_Download.asp?FileID=<%=sImage%>" /></a></td><td align="right"><%=sDesc%></td>
</tr>
<%
oRS.MoveNext
Loop
%>
</table>
<%
Else
Response.Write "<p>No images to display.</p>"
End If
Set oRS = Nothing
oConn.Close
Set oConn = Nothing
%>
This is the error
Code:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/S.O.S Pets - Website/1dogs1.asp, line 45
Thanks for the support 
hehe nvm, again, i've solved it :P the first line should've looked like this:
Code:
sSQL = "SELECT * FROM Animals WHERE (adoptionstatus= '1') AND (animaltype= '1') ORDER BY fileID DESC"
So now i've got all the tables working, how do i start the form to move an animal from the dogs / cats tables to the adopted one?
Bookmarks