Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crosstab giving errors
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00088488
Message ID:
00088493
Views:
34
>VFP 3.0b for Windows.
>
>When I run the following crosstab it works find from an APP file but crashed when run from an EXE file. The error is "File dcounts1.dbf does not exist"
>
>Could anyone tell me what I am doing wrong...
>
>SELECT dtoc(diallog.rundate) + " " + diallog.dialtime as shift,;
> Diallog.dial_loc, COUNT(Diallog.dial_type);
> FROM diallog;
> WHERE Diallog.dial_type = thetype and;
> Diallog.rundate >= statbeg and;
> Diallog.rundate <= statend;
> GROUP BY 1, Diallog.dial_loc;
> ORDER BY 1, Diallog.dial_loc;
> INTO CURSOR dcounts1
> select dcounts1
> DO (_GENXTAB) WITH dcounts1

Evan, you use alias name of your cursor, not it's actual DBF name.
Use instead:
DO (_GENXTAB) WITH DBF("dcounts1")


Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform