Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select
Message
 
 
To
15/07/2005 08:03:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Select
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01032514
Message ID:
01033037
Views:
19
Mohammed,

You have to SELECT ... INTO CURSOR ... and have your grid.RecordSource pointing at the same cursor to see the result in the grid.

Also I'm not sure you are really seeing exactly what you want in the browse. Put some records dated 20/03/2004 and 7/02/2001 into table1. Using month() like you are will show data for every year if the month fits in your range.

>thank you so much, it works,
>could you help me show this result at my grid not at cursour,
>i try as under, i see repeat dat at my grid
>thisform.text25.value=("31/03/2005")
>thisform.text2.value=("01/01/2005")
>
>
> SELECT * FROM table1;
>WHERE BETWEEN(MONTH(table1.dat),MONTH(thisform.text2.Value),MONTH(thisform.text25.Value)) ;
>AND table1.mac1=UPPER(ALLTRIM(thisform.text18.value )) AND table1.TYP=THISFORM.TEXT24.VALUE
>IF _TALLY > 0
>brow && i see the result exactly what i want
>
>thisform.grid1.Refresh  &&&result just for month 1
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform