Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select and sum
Message
From
22/11/2004 04:09:14
 
 
To
21/11/2004 11:20:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00963216
Message ID:
00963415
Views:
7
hi,
thank you very much,it works.

i append new small code to print out the result ,as under
but how i can sum the totals for every customers at my report,.
LOCAL ldStart, ldEnd
ldStart = thisform.pageframe1.page1.text3.value
ldEnd = thisform.pageframe1.page1.text5.value

SELECT datein, inname, billno, SUM( total ) AS bill_total FROM Mstr WHERE ;
  BETWEEN( datein, ldStart, ldEnd ) ;
  GROUP BY inname, billno,datein ;
  ORDER BY inname INTO CURSOR qTmp
SELECT csrBillTotals 
ZAP
APPEND FROM DBF( [qTmp] )
Thisform.pageframe1.page1.grid1.refresh()
REPORT FORM  allcost preview &&
Have you obtained any VFP reference books yet?i haven't any books, i depend at vfp8.help
thanks.
best regards.
m.qasem
thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform