G
Guest
(ACCESS 2000)- In a query I want to dynamically calculate how many times a
character occurs in a string. Like Ones=OCCUR(AnyString,"1") - Any Ideas
please!
Here is a code Equivalent:-
Ones=0
AnyString="122211221"
For I = 1 to Len(AnyString)
If Mid(AnyString,I,1)="1" Then Ones=Ones+1
Next I
NB - If not Please Mr Gates include such a function in your next release.
character occurs in a string. Like Ones=OCCUR(AnyString,"1") - Any Ideas
please!
Here is a code Equivalent:-
Ones=0
AnyString="122211221"
For I = 1 to Len(AnyString)
If Mid(AnyString,I,1)="1" Then Ones=Ones+1
Next I
NB - If not Please Mr Gates include such a function in your next release.