Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Union All
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01638309
Message ID:
01638310
Views:
66
1) MS SQL don't know into cursor cbk
2) for long SQL command use TEXT...ENDTEXT

MartinaJ

>Sir I have these codes
>
>
>cmd="select acc_code,sum(dr_amount)as dramount,sum(cr_amount)as cramount;
>	from vouchers where acc_code=m.cash_code1 and date<f_date1;
>	union all;
>	select acc_code,sum(dr_amount)as dramount,sum(cr_amount)as cramount;
>	from cashsalp where acc_code=m.cash_code1 and date<f_date1;
>	union all;
>	select acc_code,sum(dr_amount)as dramount,sum(cr_amount)as cramount;
>	from crsalp where acc_code=m.cash_code1 and date<f_date1;
>	union all;
>	select acc_code,sum(dr_amount)as dramount,sum(cr_amount)as cramount;
>	from cashprp where acc_code=m.cash_code1 and date<f_date1;
>	into cursor cbk"
>	
>if sqlexec(con,cmd,'cbk')<0
>	aerror(laerror)
>	messagebox(laerror[1,2])
>	return
>ENDIF
>
>
>It says:
>Command contains unrecognized phrase/keyword.
>
>Please help me to locate error
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform