Hey guys,
I created a query with the Query builder and tested it. It works fine. Basically, I want the query to count the number of Active accounts at any given time. It should just return a number, ie 154. I want to be able to use the result, as in our example 154 in VBA code, but I'm not sure how to go about doing this.
Here's the working Query:
SELECT Count(Partners.[Account Nbr]) AS Total
FROM Partners
WHERE (((Partners.[Status ID])=1));
And I need set MyPeriod![Number of Partners] = to the value of the query. Got it? Please help! Thanks,
NT
I created a query with the Query builder and tested it. It works fine. Basically, I want the query to count the number of Active accounts at any given time. It should just return a number, ie 154. I want to be able to use the result, as in our example 154 in VBA code, but I'm not sure how to go about doing this.
Here's the working Query:
SELECT Count(Partners.[Account Nbr]) AS Total
FROM Partners
WHERE (((Partners.[Status ID])=1));
And I need set MyPeriod![Number of Partners] = to the value of the query. Got it? Please help! Thanks,
NT