data definition expression

danabides

New member
Local time
Today, 13:21
Joined
Sep 5, 2007
Messages
9
I generally use Cognos for my queries, so the overly user friendlyness of access is confusing me and im not proficient enough in sql to just go in and edit the code...

How do i generate a query that groups data in unique ways in the result, but does not change the data in the originating table.

For example:

I have the column tbemployment.dept . In a crosstab query i want everybody that isnt tbvoter.dept='BELLS' to be counted as 'other'.

In Cognos i would do this in the 'data definition' window for that field and use 'if (tbvoter.dept<> 'BELLS') then ('other') else (tbvoter.dept)'

How do i do this in access?
 
IIF(tbvoter.dept<> 'BELLS','Other',tbvoter.dept)
 
keithg, that was so quick and helpful i may just click that scale twice
 

Users who are viewing this thread

Back
Top Bottom