I
Ivan Ferrer Villa
We all know that Dcount doesn't support DISTINCT in VBA and there are
lots of threads talking about it everywhere.
But now I've found the way to do it.
We can use the criteria string to compare results.
iCustomers = Dcount("IdCustomer","Customers","IDCustomer IN (SELECT
IdCustomer FROM Customers WHERE " & stCriteria & ")")
the key is the word IN.
You're welcome.
Ivan Ferrer Villa - Granada - Spain.
lots of threads talking about it everywhere.
But now I've found the way to do it.
We can use the criteria string to compare results.
iCustomers = Dcount("IdCustomer","Customers","IDCustomer IN (SELECT
IdCustomer FROM Customers WHERE " & stCriteria & ")")
the key is the word IN.
You're welcome.
Ivan Ferrer Villa - Granada - Spain.