H
HM
Dear all,
I have MS Access2K all data in table is char fields.
How can I run DSum for char field? Like I want to count
how many record sex is 1 (male) and 2 is female.
I write like this but error occur :Can not sum on char
field!. Here is my code:
Dim Q1 as interger
For q1=1 to 40
Q1(1)=DSum("[sex]", "Table1", "[sex]='1' ")
Q1(2)=DSum("[sex]", "Table1", "[sex]='2' ")
Next Q1
Please help, thank you-HM
I have MS Access2K all data in table is char fields.
How can I run DSum for char field? Like I want to count
how many record sex is 1 (male) and 2 is female.
I write like this but error occur :Can not sum on char
field!. Here is my code:
Dim Q1 as interger
For q1=1 to 40
Q1(1)=DSum("[sex]", "Table1", "[sex]='1' ")
Q1(2)=DSum("[sex]", "Table1", "[sex]='2' ")
Next Q1
Please help, thank you-HM