Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using option button in sql
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
MS SQL Server
Miscellaneous
Thread ID:
01311140
Message ID:
01311208
Views:
26
This message has been marked as the solution to the initial question of the thread.
>How will add with my query.
>SELECT scode,CODE,descr,fname,descru,fnameu,lcode,sec,sex,rtel FROM student WHERE admtd=1;
>aND lcode>=thisform.lcodefm.value AND lcode<=thisform.lcodeto.value...
lnSex       = thisform.Options1.Value
lcCoderFrom = thisform.lcodefm.value
lcCoderTo   = thisform.lcodeto.value
SELECT scode ,;
       CODE  ,;
       descr ,;
       fname ,;
       descru,;
       fnameu,;
       lcode ,;
       sec   ,;
       sex   ,;
       rtel   ;
FROM student  ;
WHERE admtd == 1                              AND;
      lcode BETWEEN lcCoderFrom AND lcCoderTo AND;
      (Sex = lnSex OR lnSex = 3)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform