Description: This error
comes when you try to add new DataSource to the top of the query.
QueryBuildDataSource qbds;
qbds = query.addDataSource(tableNum(newTable)); // This is wrong
You should add new table to the Main DataSource instead.
query.dataSourceTable (tableNum (newTable)).addDataSource (...)// This is correct
QueryBuildDataSource qbds;
qbds = query.addDataSource(tableNum(newTable)); // This is wrong
You should add new table to the Main DataSource instead.
query.dataSourceTable (tableNum (newTable)).addDataSource (...)// This is correct
1 comments:
commentshi Umesh,
Replydo you declare the "query" first before you use it? i try your method but the system show me message error "Variable query has not been declared."
Thanks for comments.....