G
Guest
I have a table of data with lots of rows. One of my columns has a group of
rows associated with one account number, then another group of rows will be
below that, but, they'll be associated with a different account number. The
account number is always in the first row following the group of rows, with
the rest of the rows underneath the first row being empty, until a new
account number begins. Is there a formula that will look at the account
number and copy it down to the rest of the rows, but, only when the cell is
blank.
In excel this is done rather easy, I input the first account number in a new
column (let's say "C", where column "D" is my original data, so C1=D1), then
in C2, I use this formula =IF(D2="",C1,D2), which I can then use all the way
down to the end of my data. This returns me the value in column "D" if there
is data, if there isn't data in column "D" it returns the value from above in
column "C".
How could I input this into my query in Access to acheive the same effect?
-Tony
rows associated with one account number, then another group of rows will be
below that, but, they'll be associated with a different account number. The
account number is always in the first row following the group of rows, with
the rest of the rows underneath the first row being empty, until a new
account number begins. Is there a formula that will look at the account
number and copy it down to the rest of the rows, but, only when the cell is
blank.
In excel this is done rather easy, I input the first account number in a new
column (let's say "C", where column "D" is my original data, so C1=D1), then
in C2, I use this formula =IF(D2="",C1,D2), which I can then use all the way
down to the end of my data. This returns me the value in column "D" if there
is data, if there isn't data in column "D" it returns the value from above in
column "C".
How could I input this into my query in Access to acheive the same effect?
-Tony