I have a query that renumbers a field for all records in a temporary table
This works perfectly.
What I would like to do is dictate what the starting number should be. I understand that you can add additional information for the COUNTER (x,y) for starting value and increment amount e.g. (5, 1) would start the series at 5 and increment each record by 1, therefore values would be 5, 6, 7, 8, etc.
My issue is that I need the starting value for a renumbering exercise to be determined each time I run the query based on a value I capture in a textbox.
Something like this:
This just creates an error... How do I push the value in the textbox into the statement?
Code:
ALTER TABLE tblRanking ALTER COLUMN Rank COUNTER
This works perfectly.
What I would like to do is dictate what the starting number should be. I understand that you can add additional information for the COUNTER (x,y) for starting value and increment amount e.g. (5, 1) would start the series at 5 and increment each record by 1, therefore values would be 5, 6, 7, 8, etc.
My issue is that I need the starting value for a renumbering exercise to be determined each time I run the query based on a value I capture in a textbox.
Something like this:
Code:
ALTER TABLE TEMPRanking ALTER COLUMN NewClassRank COUNTER (me.text15, 1);
This just creates an error... How do I push the value in the textbox into the statement?