Assigning rows affected to vaiiable
Posted: Wed Dec 06, 2017 2:21 pm
I must be missing something on the syntax of this.
I've a variable - I've ticked the Assign "rows affected" into Variable and entered {COUNTBEFORE}, which a step sets to zero initially.
Next step is to run the SQL SELECT ID FROM Ages which in SQL generate 600 rows or so.
I've ticked the Assign "rows affected into Variable" and entered {COUNTBEFORE} as the variable
Subsequent step is a message box to display the value of {COUNTBEFORE} however it is always zero.
If I change the initial setting of the value to 9999, {COUNTBEFORE} Is returned as 9999.
if I change the "Assign "rows affected" into Variable" and entered COUNTBEFORE without {}
I get an error of -1 which I presume is right.
It seems that either my SQL isn't correct (althought my syntax to update SQL is fine)
The value isn't being assigned to the variable.
Any help please?
I've a variable - I've ticked the Assign "rows affected" into Variable and entered {COUNTBEFORE}, which a step sets to zero initially.
Next step is to run the SQL SELECT ID FROM Ages which in SQL generate 600 rows or so.
I've ticked the Assign "rows affected into Variable" and entered {COUNTBEFORE} as the variable
Subsequent step is a message box to display the value of {COUNTBEFORE} however it is always zero.
If I change the initial setting of the value to 9999, {COUNTBEFORE} Is returned as 9999.
if I change the "Assign "rows affected" into Variable" and entered COUNTBEFORE without {}
I get an error of -1 which I presume is right.
It seems that either my SQL isn't correct (althought my syntax to update SQL is fine)
The value isn't being assigned to the variable.
Any help please?