vba - Microsoft Access/Count words -


how can count words in access column? example have 33 words "rec" , 20 "norec" , want number display in 2 text-boxes, 1 rec , 1 norec.

i not think need vba this, can make use of totals query desired result want.

select      sum(iif(yourcolumnname = "rec", 1, 0)) totalrec,     sum(iif(yourcolumnname = "norec", 1, 0)) totalnonrec      yourtablename 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -