Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form OK in development, 'Record is out of range' at run
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00098221
Message ID:
00098641
Views:
27
I agree with John's idea to use SQL in place of the FOR clause, but are you absolutely positive you have the correct table SELECTed before calling the REPORT? It's an easy mistake to make.....

HTH

Barbara

>>What code is in the Click()??
>
>Here it is:
>
>Local ldFrom, ldTo, lnSendTo, lcDest
>lnSendTo = ThisForm.OptSendTo.Value
>lcDest = Iif(lnSendTo = 2, 'To Printer', 'Preview')
>ldFrom = ThisForm.txtFrom.Value
>ldTo = ThisForm.txtTo.Value
>Report Form Total For Between(TotalDate, ldFrom, ldTo) &lcDest ;
>  Heading "From "+DTOC(ldFrom)+" To "+DTOC(ldTo) NoConsole
>If lnSendTo = 2
>  Wait Window "Report Sent To "+pPrnName Timeout 2
>Endif
>ThisForm.Release
>
>TIA
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform