I
ipk*
Here is another question, that I can for the life of it not figure out:
I have a query (let's call it second query), that selects certain fields
from a first query. It does not do anything else, really, but remove all
superfluous fields from the first query, such that I can then group by the
remaining fields.
SELECT query_wellvolumes_via_table.GScreenId, "H2O" AS SubstanceName,
query_wellvolumes_via_table.WellPositionRow,
query_wellvolumes_via_table.WellPositionColumn,
Sum(query_wellvolumes_via_table.volGScreenComponent) AS
SummevonvolGScreenComponent
FROM query_wellvolumes_via_table
GROUP BY query_wellvolumes_via_table.GScreenId, "H2O",
query_wellvolumes_via_table.WellPositionRow,
query_wellvolumes_via_table.WellPositionColumn
HAVING
(((query_wellvolumes_via_table.GScreenId)=[Forms].[form_gscreen_pipetting_do].[cbo_SelectGScreen]));
Now, I want to sum over one of the fields (see above the SQL syntax) in the
second query. The trick seems to be, [volGScreenComponent], the field I want
to sum over, is really calculated from a whole bunch of parameters of my
first query (query_wellvolumes_via_table). My feeling is, that the query
shown above, for some reason still knows about the underlying first query,
and rather than returning 1 record for a certain Row and Column value, it
returns two or three, depending somehow what kind of parameters went into the
calculation of [volGScreenComponent] in the first query.
Can I turn this behaviour off ?
Now the one clutsy solution that occurs to me would be to write the query
result into a table, and then take it from there. That does not seem so
elegant, though.
Also, i am really worried about any zombie tables that one may forget to
clean out and update, and end up with obsolete values somewhere down the
line, without ever noticing ... and since I run up to 96 experiments in one
setup, there would be a continuous writing, updating and deleting of 96
tables, cluttering up my database. That does not seem right either ...
If someone could just nudge me into the right direction ... ???
Thanks a lot ...
Ingo
I have a query (let's call it second query), that selects certain fields
from a first query. It does not do anything else, really, but remove all
superfluous fields from the first query, such that I can then group by the
remaining fields.
SELECT query_wellvolumes_via_table.GScreenId, "H2O" AS SubstanceName,
query_wellvolumes_via_table.WellPositionRow,
query_wellvolumes_via_table.WellPositionColumn,
Sum(query_wellvolumes_via_table.volGScreenComponent) AS
SummevonvolGScreenComponent
FROM query_wellvolumes_via_table
GROUP BY query_wellvolumes_via_table.GScreenId, "H2O",
query_wellvolumes_via_table.WellPositionRow,
query_wellvolumes_via_table.WellPositionColumn
HAVING
(((query_wellvolumes_via_table.GScreenId)=[Forms].[form_gscreen_pipetting_do].[cbo_SelectGScreen]));
Now, I want to sum over one of the fields (see above the SQL syntax) in the
second query. The trick seems to be, [volGScreenComponent], the field I want
to sum over, is really calculated from a whole bunch of parameters of my
first query (query_wellvolumes_via_table). My feeling is, that the query
shown above, for some reason still knows about the underlying first query,
and rather than returning 1 record for a certain Row and Column value, it
returns two or three, depending somehow what kind of parameters went into the
calculation of [volGScreenComponent] in the first query.
Can I turn this behaviour off ?
Now the one clutsy solution that occurs to me would be to write the query
result into a table, and then take it from there. That does not seem so
elegant, though.
Also, i am really worried about any zombie tables that one may forget to
clean out and update, and end up with obsolete values somewhere down the
line, without ever noticing ... and since I run up to 96 experiments in one
setup, there would be a continuous writing, updating and deleting of 96
tables, cluttering up my database. That does not seem right either ...
If someone could just nudge me into the right direction ... ???
Thanks a lot ...
Ingo