Hello, I have create a query, name "Requête2" : SELECT DISTINCT tblVariables.NomBase FROM tblVariables; And In my vba code, I write : Dim lCompte As Long lCompte = DCount("*", "Requête2") This code is right, and it give me the number of different NomBase. Can I do the same with just vba code ?
www.access-programmers.co.uk