Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show in screen a filtered query of access database

Status
Not open for further replies.

cfyanez

MIS
Apr 12, 2000
3
MX
I need help, because i must show to my users a filtered or query of access database. i already have the code to make the query i think so, but maybe it's wrong, so i need your help and some advices to make a good query and then show it to my user in the screen or printer.<br>thank's a lot<br>best regards.<br>i'll be waiting your answer.<br><br>atte. CARLOS AND FERNANDO.
 
Are you allowing your users to input the &quot;WHERE&quot; part of the SQL in a free-form manner?&nbsp;&nbsp;Handling bad input by the user can be a problem.<br><br>I've seen some WHERE-clause designers that use drop-down listboxes and textboxes to allow their users to construct a query.&nbsp;&nbsp;Usually, they're like (in left-to-right order):<br>&nbsp;&nbsp;&nbsp;&nbsp;1) listbox of available columns<br>&nbsp;&nbsp;&nbsp;&nbsp;2) Listbox of comparison operators (&quot;Like&quot;, &quot;&lt;&quot;, &quot;&lt;&gt;&quot;, etc)<br>&nbsp;&nbsp;&nbsp;&nbsp;3) Textbox for entering the right side of the comparison<br>&nbsp;&nbsp;&nbsp;&nbsp;4) listbox or radio button to choose a conjunction: &quot;and&quot;, &quot;or&quot;, or &lt;nothing&gt;<br><br>You still have to do some elementary parsing to check for input that makes sense.&nbsp;&nbsp;Or maybe just let it fail, and require that the user RTFM.<br><br>Chip H.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top