Hello,
I am running a MS Access query manually where I select each individual data field and set it to zero (0) if the criteria is Null. There are over 25 fields (and increasing), so I was attempting to find a simplier way to automate this process (e.g. a For Next loop).
Doing it once looks something like this:
UPDATE Table
SET JanuarySales = 0
WHERE JanuarySales IS NULL
Is there a For Next loop that can parse through each of the Columns (JanuarySales, FebruarySales, etc) without knowing the Column Names prior to running?
Thanks!
I am running a MS Access query manually where I select each individual data field and set it to zero (0) if the criteria is Null. There are over 25 fields (and increasing), so I was attempting to find a simplier way to automate this process (e.g. a For Next loop).
Doing it once looks something like this:
UPDATE Table
SET JanuarySales = 0
WHERE JanuarySales IS NULL
Is there a For Next loop that can parse through each of the Columns (JanuarySales, FebruarySales, etc) without knowing the Column Names prior to running?
Thanks!