Hej evilfish
Jeg skal kun bruge "status" kolonnen i den pågældende situation, input hertil kommer direkte fra vores ordre system som er C5.
her er hele scriptet, jeg har en anden søgefuktion indbygget den er dog ikke med i udsnittet herunder:
accessdb="EMC5"
cn="DRIVER={Microsoft Access Driver (*.mdb)};"
cn=cn & "DBQ=" & server.mappath(accessdb)
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "select * from PANDORA where " & u_where &" like '"& u_search & "'"
rs.Open sql, cn
If rs.eof then
search="nothing"
end if
%>
<head>
<title><%= sql %></title>
<p>
<%= sql %>
</p>
<% if search <> "nothing" then %>
<div align="left">
<table cellspacing="0" class="style20" cellpadding="0" style="width: 880px">
<tr class="style19">
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">Country</font></th>
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">City</font></th>
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">Shop
<br>
format</font></th>
<th width="200" valign="top" align="left" class="style20" ><font face="Arial" size="1">Delivery address</font></th>
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">Order No.</font></th>
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">Status</font></th>
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">Shipping date</font></th>
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">Expected finish</font></th>
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">Opening date</font></th>
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">Go
to project</font></th>
<th width="60" valign="top" align="left" class="style20" ><font face="Arial" size="1">Ordering</font></th>
</tr>
<% end if %>
<%
On Error Resume Next
rs.MoveFirst
do while Not rs.eof
%>
<tr class="style19">
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Country") %></font></td>
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("City") %></font></td>
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Shop_format") %></font></td>
<td width="200" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Delivery_address") %></font></td>
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Order_No") %></font></td>
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Status") %></font></td>
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Shipping_date") %></font></td>
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Expected_finish") %></font></td>
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Opening_date") %></font></td>
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Go_to_project") %></font></td>
<td width="60" valign="top" align="left" class="style20" style="height: 27px">
<font face="Arial" size="1">
<%= rs("Ordering") %></font></td>
<%
rs.MoveNext
loop%>
<% if search = "nothing" then %>
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="840">
<tr>
<td valign="top" align="left">
<font face="Arial" size="2">
No Search Results Matched <%= u_search %></font></td>
</tr>
<% end if %>
Her er det så jeg gerne skulle have den til at fravælge de linie hvor værdien er = 0
værdien findes i ovenstående database i kolonnen Status og er angivet til enten 1 eller 0
hvordan pokker får man det integreret i ovenstående kode??????