dcount from two tables. (1 Viewer)

prabhus

Registered User.
Local time
Yesterday, 17:29
Joined
Mar 14, 2012
Messages
67
In my form, i would like to sum and dispay the values of datas from two different tables.
Table1: MasterTable1
Table2: MasterTable2
I use the below code for one table and its working.

Text15 = DCount("[client]", "[MasterTable1]", "[Confirmed]=Yes and [Assigned]=No")
But i want to sum the same criteria from MAstertable1 & Mastertable2 and display the data.
Please help.
 

JHB

Have been here a while
Local time
Today, 02:29
Joined
Jun 17, 2012
Messages
7,732
What about the below?
Text15 = DCount("[client]", "[MasterTable1]", "[Confirmed]=Yes and [Assigned]=No")+DCount("[client]", "[MasterTable2]", "[Confirmed]=Yes and [Assigned]=No")
 

prabhus

Registered User.
Local time
Yesterday, 17:29
Joined
Mar 14, 2012
Messages
67
Thank you Sir, Perfect!!!
 

Users who are viewing this thread

Top Bottom