Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement
Message
From
14/07/2000 22:22:00
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00365519
Message ID:
00392796
Views:
8
Hi,
Do you have any experience with DAO and ADO?
I would like to use the SQL statement below as my query. It work properly in ADO, but not in DAO (programmatically). Any ideas?


sqlstr = "SELECT SUM(TTotal), SUM(PTotal) FROM " & _
"(SELECT SUM(addlog.tran_bal) AS TTotal, SUM(0) AS PTotal " & _
"From Addlog Union " & _
"SELECT SUM(0) AS Total, SUM(eftlog.tran_bal) AS PTotal " & _
"FROM eftlog)"

Tahnk you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Previous
Reply
Map
View

Click here to load this message in the networking platform