D
Douglas
I want to get the result of a count where I have to use an
inner join on two tables. In this example I want to
return CountOfStatus so I can tell if there are any
accounts not active before the entry will be allowed to
append to another table; ie the main table. Can you
please help me with the DoCmd.???? that would be used
here....I think. I do not want a DCount() on a query
created in the query tab. I want to do it with straight
code so it will be flexible and later I can change the
Entry table to Entry1 or Entry2 etc, depending on the
table I want to test, and just concatenate the string to
get my CountOfStatus result. Thank you very much for your
help.
SELECT Count(ChartOfAccounts.Active) AS CountOfStatus
FROM ChartOfAccounts INNER JOIN Entry ON
(ChartOfAccounts.Co = Entry.Co) AND
(ChartOfAccounts.Account = Entry.Account)
WHERE (((ChartOfAccounts.Active)=0));
inner join on two tables. In this example I want to
return CountOfStatus so I can tell if there are any
accounts not active before the entry will be allowed to
append to another table; ie the main table. Can you
please help me with the DoCmd.???? that would be used
here....I think. I do not want a DCount() on a query
created in the query tab. I want to do it with straight
code so it will be flexible and later I can change the
Entry table to Entry1 or Entry2 etc, depending on the
table I want to test, and just concatenate the string to
get my CountOfStatus result. Thank you very much for your
help.
SELECT Count(ChartOfAccounts.Active) AS CountOfStatus
FROM ChartOfAccounts INNER JOIN Entry ON
(ChartOfAccounts.Co = Entry.Co) AND
(ChartOfAccounts.Account = Entry.Account)
WHERE (((ChartOfAccounts.Active)=0));