Vill hämta innehåll från två tabeller om "lins" = trueKan man skriva så här ?
Mvh Christofer
<code>
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("test_db.mdb")
SQL = "SELECT * FROM prodTb WHERE '" & ratio & "' >= lins1 AND '" & ratio & "' <= lins2 AND IF rs(lins) then SELECT * FROM linsTb WHERE '" & ratio & "' >= ratio1 AND '" & ratio & "' <= ratio2 end if"
rs.Open SQL, Connect, 1, 2
Do while not rs.EOF
%>
</code>