Hi all
I have a grid wich got 5 columns, what I would like to do is:
Add the first 4 columns and store the value average in the other column.
the table's name is "tblNotas", and the 5 controlsourse are named.
yannot, febnot, marnot, abrnot, totnot
all ar numeric value
what i'm doing is:
thisform.grid1.column6.controlsource = (tblnotas.yannot + nblnotas.febnot + tblnotas.marnot + tblnotas.abrnot)/4
or this way:
thisform.grid1.column6.text1 = (tblnotas.yannot + nblnotas.febnot + tblnotas.marnot + tblnotas.abrnot)/4
but it doesn;t work neither,
What could I do in order to ADD this value,
SOme help will be aprecite.
Thanks in advance
I have a grid wich got 5 columns, what I would like to do is:
Add the first 4 columns and store the value average in the other column.
the table's name is "tblNotas", and the 5 controlsourse are named.
yannot, febnot, marnot, abrnot, totnot
all ar numeric value
what i'm doing is:
thisform.grid1.column6.controlsource = (tblnotas.yannot + nblnotas.febnot + tblnotas.marnot + tblnotas.abrnot)/4
or this way:
thisform.grid1.column6.text1 = (tblnotas.yannot + nblnotas.febnot + tblnotas.marnot + tblnotas.abrnot)/4
but it doesn;t work neither,
What could I do in order to ADD this value,
SOme help will be aprecite.
Thanks in advance