Hi, everyone.
This shouldn't be too hard.
I have a table with many, many columns. The columns are variable though. They could change at any time. I want to write a query that will go in to this table and reset all of the values to zero (prepping for new months data entry). I have one column that is text that holds the dept name and it shouldn't change.
something like this psuedo code
for i = 2 to fieldCount <---field 1 should be fixed
update table set f(i) = 0 <--how do I get the column name
next i
this methodology isn't important either, it's just what occured to me at first. Alternate methods would be greatly appreciated.
Thanks
PB
This shouldn't be too hard.
I have a table with many, many columns. The columns are variable though. They could change at any time. I want to write a query that will go in to this table and reset all of the values to zero (prepping for new months data entry). I have one column that is text that holds the dept name and it shouldn't change.
something like this psuedo code
for i = 2 to fieldCount <---field 1 should be fixed
update table set f(i) = 0 <--how do I get the column name
next i
this methodology isn't important either, it's just what occured to me at first. Alternate methods would be greatly appreciated.
Thanks
PB