Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Sql in Vb or Access!

hi all
i have got problem too use Sql statement:"select case ... when .." in Vb6
Please help me
thanks
[119 byte] By [mohammad219] at [2007-11-11 8:37:31]
# 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 :)
microcurse at 2007-11-11 17:25:14 >
# 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:
mohammad219 at 2007-11-11 17:26:15 >