select all help with DRW

P

Paul M

Hi
I have a search form created by the DRW with a text boxes and drop down
boxes in the drop boxes when I want to include all in the search I put %
in the first value field. but the text box has this in the value field
<%=Server.HtmlEncode(Request("Project_ID"))%>
how do I fix it so that if I put nothing in project ID field it ignores it
and moves on to the next field
At the moment I get a database error untill a value is typed into the text
box
Thanks
Paul M
 
J

Jim Buyens

Try a custom query that specifies something like

....WHERE ((Project_ID = 0::projectId::) OR :):project_ID:: = "")), ...

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top