Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using 2 Search Fields
Message
From
15/07/2003 07:02:31
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00810124
Message ID:
00810133
Views:
12
Hi Neil

Just add the code for handling the second text field value to your exising code as shown below:

>
>LOCAL lcdesign
>
>DO CASE
>	CASE thisform.combo1.displayvalue='='
>           lcdesign="modacad.key3=thisform.text1.value"
>        CASE thisform.combo1.displayvalue='$'
>           lcdesign="modacad.key3$thisform.text1.value"              	
>ENDCASE


**************************************************************
*** Check the second field here
IF NOT EMPTY( ThisForm.text2.value )
  lcDesign = lcDesing + ' AND type = ' + ThisForm.Text2.Value
ENDIF
**************************************************************

>SELECT * ;
>FROM ("U:\Data\modacad.dbf") ;
>WHERE &lcdesign ;
>order BY mainkey ;
>INTO CURSOR crssearch
>
----
Regards
Andy Kramek
Previous
Reply
Map
View

Click here to load this message in the networking platform