R
Radhika
I have a query that involves three tables: 'tbl_GlissonAnalysis1',
'tbl_GlissonAnalysis2' and 'tbl_GeneralInfo'.
All three are linked by a field called 'ID#'. 'tbl_GlissonAnalysis1' has a
field called Trial#, where the Trial# is set as default to 1.
'tbl_GlissonAnalysis2' also has a field called Trial# that has the Trial# set
as default to 2. I want to add a column to the query that counts the # of
Trials for each ID#. For example, if ID# A has Trial 1 + Trial 2, I get '2'
and if ID# A has only Trial 1, I get '1'in the DCount field. The expression I
added to my qry to count the # of Trials for each ID# is:
DCount ( (*) "tbl_GlissonAnalysis1"l, "Trial#=1" AND "tbl_GlissonAnalysis2",
"Trial#=2")
However, I keep getting an error msg. What am i doing wrong? Is there any
other way I can count the # of Trials per ID#.
'tbl_GlissonAnalysis2' and 'tbl_GeneralInfo'.
All three are linked by a field called 'ID#'. 'tbl_GlissonAnalysis1' has a
field called Trial#, where the Trial# is set as default to 1.
'tbl_GlissonAnalysis2' also has a field called Trial# that has the Trial# set
as default to 2. I want to add a column to the query that counts the # of
Trials for each ID#. For example, if ID# A has Trial 1 + Trial 2, I get '2'
and if ID# A has only Trial 1, I get '1'in the DCount field. The expression I
added to my qry to count the # of Trials for each ID# is:
DCount ( (*) "tbl_GlissonAnalysis1"l, "Trial#=1" AND "tbl_GlissonAnalysis2",
"Trial#=2")
However, I keep getting an error msg. What am i doing wrong? Is there any
other way I can count the # of Trials per ID#.