Sql in Vb or Access!
hi all
i have got problem too use Sql statement:"select case ... when .." in Vb6
Please help me
thanks
# 1 Re: Sql in Vb or Access!
hello there, can you tell what exactly you are trying to do with sql? it would help me give you a more concise explanation/tip :)
# 2 Re: Sql in Vb or Access!
i wont too chenge a field value.when the field value is 1 it be "man" and if it is 2 "woman"?
and any more works like this:
select field1,count(case [filed2] when 1 end)*8+count(case [filed2] when 2 end)*4 +count(case [filed2] when 3 end)*2 from table group by field1,field2
:o
thanks a lot :WAVE: