Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in Group BY (obtainSelectStatement)

Status
Not open for further replies.

t16turbo

Programmer
Mar 22, 2005
315
GB
I have the following error appearing when I try to compile the report:


OracleTextQuerySource%ObtainSelectStatement(62): Actual: [new line] Expecting: '(', '+', '-', [currency constant],
[floating constant], [hexa constant], ID, [A-Z], [date constant],
[integer constant], Null, [octal constant], [string constant], ::, BNot,
ID@, ID#, ID%, ID&, ID!, ID$, New, Not, Nothing, Width



my code in the ObtainSelectStatement is as follows:
Code:
  GroupStr = "GROUP BY x.dsti_proj_ref, a.transtype, a.transdate, a.quantity, a.project_code, a.resource_code, " & 
 +			"b.currency_code, b.stdcost, b.totalcost, b.billrate, b.amount, c.company_name, d.name, e.first_name, " &
+			"e.last_name, b.amo"

can anyone see something I can't? I don't understand why it's not working.
thanks in advance
 
I don't think it likes your carriage returns and + signs.

try

GroupStr = "GROUP BY x.dsti_proj_ref, a.transtype, a.transdate, a.quantity, a.project_code," &
GroupStr = GroupStr & "a.resource_code, b.currency_code, b.stdcost, b.totalcost, b.billrate, " &
GroupStr = GroupStr & "b.amount, c.company_name, d.name, e.first_name, e.last_name, b.amo"

or something like that.
 
That should be:

GroupStr = "GROUP BY x.dsti_proj_ref, a.transtype, a.transdate, a.quantity, a.project_code,"
GroupStr = GroupStr & "a.resource_code, b.currency_code, b.stdcost, b.totalcost, b.billrate, "
GroupStr = GroupStr & "b.amount, c.company_name, d.name, e.first_name, e.last_name, b.amo"

Pete
 
Thanks Pete, cut and paste error on my part as we build ours with a few variables, good catch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top