G
Guest
Hello,
I am looking for a better way to do this. I have WAY too many queries with
this technique.
I have a value that I am throwing to an excel cell. I basically just need a
count of records that meet certain criteria.
Here is the SQL.
Dim tempValue as Integer
tempValue = DCount("*", "qry_One_of_Many")
'Then my code continues using this tempValue... value.
The SQL behind the "qry_One_of_Many" query, is small.
SELECT qry_Release_Open_FixTime.Severity
FROM qry_Release_Open_FixTime
WHERE (((qry_Release_Open_FixTime.Severity)=1));
How can I get the same result in the tempValue variable without having to
create an object (query)?
I am looking for a better way to do this. I have WAY too many queries with
this technique.
I have a value that I am throwing to an excel cell. I basically just need a
count of records that meet certain criteria.
Here is the SQL.
Dim tempValue as Integer
tempValue = DCount("*", "qry_One_of_Many")
'Then my code continues using this tempValue... value.
The SQL behind the "qry_One_of_Many" query, is small.
SELECT qry_Release_Open_FixTime.Severity
FROM qry_Release_Open_FixTime
WHERE (((qry_Release_Open_FixTime.Severity)=1));
How can I get the same result in the tempValue variable without having to
create an object (query)?