NickMalloy
Programmer
I have ben trying to figure out how a choose statement works. I haven't been able to find any documentation on it. Say I have a case statement that I know wont work in jet SQL. In sql server it might look like this
tbltest.field1,
case field1
when '1' then 'pos'
when '2' then 'neg'
when '3' then 'NA'
when '4' then 'Unk'
end as field1pnt,
If I convery it over to a choose statement like this
Choose(field1, "pos", "neg", "NA", "Unk") as field1Pnt,
How does it match up the information. How does it know that 2 should be neg and so forth??? I don't quite understand.
tbltest.field1,
case field1
when '1' then 'pos'
when '2' then 'neg'
when '3' then 'NA'
when '4' then 'Unk'
end as field1pnt,
If I convery it over to a choose statement like this
Choose(field1, "pos", "neg", "NA", "Unk") as field1Pnt,
How does it match up the information. How does it know that 2 should be neg and so forth??? I don't quite understand.