yeah i could use that.
i have coded this,
Public Function getPercentageOfMales()
Dim males As Integer
Dim total As Integer
Dim per As Integer
males = DCount("[SEX]", "ALL DETAILS", "[SEX] = 'M'")
total = DCount("[SEX]", "ALL DETAILS")
per = males / total * 100
getPercentageOfMales =...