Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change
Message
 
 
To
31/12/2010 12:28:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Change
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01494244
Message ID:
01494247
Views:
106
This message has been marked as the solution to the initial question of the thread.
>hi all,
>
>i need help
>if thisform.text1.value=2005
>
>i need to change this statment
> column7 >= '2005' to column7 >= 'thisform.text1.value' ......
>
>holl code
>
>Select column5, column6,;
>  CAST(Icase(;
>  column7 >= '2005' And column7 <= '2006','2005,2006', ;
>  column7) As c(10)) As 'column7', ;
>  count(column5) As total_cfil ;
>  from test ;
>  WHERE column6 In ('ÃÝÑÇÏ      ','ÔÑßÉ ãÓÇåãÉ','ÔÑßÉ ÚÇÏíÉ ') And Val(column7) In (2005,2006,2007,2008,2009) ;
>  group By 1, 2, 3 ;
>  INTO table mucurt
>
>thanks

Try
lcYear = transform(thisform.Text1.value)


Select column5, column6,;
  CAST(Icase(;
  column7 >= m.lcValue And column7 <= '2006','2005,2006', ;
  column7) As c(10)) As 'column7', ;
  count(column5) As total_cfil ;
  from test ;
  WHERE column6 In ('ÃÝÑÇÏ      ','ÔÑßÉ ãÓÇåãÉ','ÔÑßÉ ÚÇÏíÉ ') And Val(column7) In (2005,2006,2007,2008,2009) ;
  group By 1, 2, 3 ;
  INTO table mucurt
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform