Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From Date to Date
Message
From
22/05/2008 13:25:08
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01319033
Message ID:
01319060
Views:
17
>>I have been asked to do something I know is doable here I go...
>>
>>I need to be able to design a report or form/report that has a date criteria ie Records from Date to Date where date is filled in by the end user to get totals for x reports.
>>
>>If anyone has any ideas or articles on a simple date interface type thing????
>>
>>Let me know
>>
>>Thanks,
>>
>>Fred W.
>
>Fred,
>
>You need to design a Report Selection criteria form which would run your report.
>
>Create a form, put two textboxes on it txtFrom and txtTo and a command button cmdRunReport (and one more for Close, if needed).
>
>In the Init of the form put
>
>thisform.txtTo.value = date()
>thisform.txtFrom.value = gomonth(date(),-1) && One month difference
>
>The button will run form's method RunReport
>
>In this method you select data for your report using SELECT-SQL statement and the values from your texboxes and then run the report using REPORT FORM command and the cursor with the data.
>
>You can access local variables in your report, so you can add selection criteria to the header of your report.
>
>Or simply buy Stonefield Query that can do all your reports for you.
Wow thanks and I will probably look at stonefield or ?? down the road, it is kind of cool stumbling slowly and learning too.

Again Thank You.

Fred W.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform