help with Multi criteria in dcount (1 Viewer)

kasmax

Registered User.
Local time
Tomorrow, 00:48
Joined
Jun 4, 2012
Messages
38
Hi
I am using dcount function in a query. when i use two AND conditions it works fine but when i use 3rd AND it give error sayn character lenght must be uoto 2048

its the dcount im using:
DCount("[Category]","[_RawData_All]","[ID]='" & [ID] & "' and [Category]='DOH FastFood'" and [SubCategory]='Pocket Park'")

so can someone please help me. can dcount take more than 2 conditions?

thanks for help
 

Addyman

Registered User.
Local time
Today, 09:48
Joined
Dec 29, 2011
Messages
90
You have an extra Double Quote (") after 'DOH FastFood' I believe that is not required.

Remove it and try then.
 

kasmax

Registered User.
Local time
Tomorrow, 00:48
Joined
Jun 4, 2012
Messages
38
Thanks Addyman
Thats has solved the problem.
 

Users who are viewing this thread

Top Bottom