Hi Marshall and thank you very much for your input.
However I don't think that I have explained myself properly.
My "welcome" form, just as a courtesy/intro thing to the user, shows
the number of trading days since the start of the month. The user can
look at it, ignore it, whatever.
Like I said, it works perfectly but I only cited it to show that it
works perfectly on forms and "seems" (I can put it no stronger) to
point to some intrinsic difference about how the dsum works when it is
the data source for a form's text box from when it is used inside a
query - any type of query.
However, I do want to use my query in the entirely conventional
manner:
a) as a one off backfill operation I want to fill in the "duration" on
existing records for completed trades (i.e. there is BOTH a start and
and end date).
For this, when I can prove that it works, I will just hit the run
button and that will be the backfill completed - no need for any code
anywhere.
b) There will always be some live trades. i.e. Records where the start
date date is entered but the end date is null.
Hence, I will have a subform (as a continuous form) showing all live
trades and, alongside the start date for each, the number of trading
days to date that each has been open. In this case, the start date for
the filter will be the "Start_Date" field from the table and the end
will simply be Date().
But, no matter what I do, I cannot get this dsum thing to work in any
kind of query, neither select nor update.
If you have any further ideas, i would be delighted to receive them,
thank you.
Regards
RD
|