Albert... thank you very much for your idea, but unfortunately it doesn't
work...the function is only called once, not for each row returned.
Any other ideas?
I not sure what you mean by the above?
If you have a continues form, and bind a text box in that continues form to
a function, then that function DOES get called for each record displayed....
You might want to actually explain what you are trying to do here?
You can use a function, and this function will be called for each row
displayed (not sure why you don't get this behaviors). However, I would not
use this approach to actually "modify" the data, as that don't make sense.
(and, the same goes for a report...it would not make sense to try and have
the mere fact of the running the report modify data - you can certainly
record the fact that report was printed, or have some code run *after* the
report is printed...but the idea or concept of modifying data *DURING* the
report generation don't fly).
If you need to modify the data, then simply run some code that processes all
the records attached to the current form. (why not do this????).
So, I don't think it makes any sense to have some code "modify" the data
during display. However, my suggestion of using a function to display
information based on the current record will certainly let you "display"
data, or show the results of some function, and that value will be based on
each record shown.
I even have a working example of a contnues form with a check box for each
row. This check box is NOT a field, but in fact a function value. This
example lets you "check" a whole bunch of reocrds to incoude into a
report..but in fact I don't have a check box field...but use a fucntion. You
can find the example here:
http://www.attcanada.net/~kallal.msn/msaccess/msaccess.html
The one you want is the 2nd last one: Multi-Select Example.