I have a query with a single table. One of the table fields appearing
in the QBE grid is [NPPubDay] containing values from 1 to 127.
Then I have the following calculated field named [Published]:
Published: IIf((1 And [NPPubDay])=1,"Sunday ","") & IIf((2 And
[NPPubDay])=2,"Monday ","") & IIf((4 And [NPPubDay])=4,"Tuesday ","")
& IIf((8 And [NPPubDay])=8,"Wednesday ","") & IIf((16 And
[NPPubDay])=16,"Thursday ","") & IIf((32 And [NPPubDay])=32,"Friday
","") & IIf((64 And [NPPubDay])=64,"Saturday" ,"")
When the query runs - I'm getting nothing in the [Published] field.
What am I doing wrong?
I was expecting stuff like...
Monday Wednesday Friday
Sunday Wednesday
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Tuesday Thursday
Monday Tuesday Wednesday Thursday Friday
But, as I said, I'm getting nothing.
in the QBE grid is [NPPubDay] containing values from 1 to 127.
Then I have the following calculated field named [Published]:
Published: IIf((1 And [NPPubDay])=1,"Sunday ","") & IIf((2 And
[NPPubDay])=2,"Monday ","") & IIf((4 And [NPPubDay])=4,"Tuesday ","")
& IIf((8 And [NPPubDay])=8,"Wednesday ","") & IIf((16 And
[NPPubDay])=16,"Thursday ","") & IIf((32 And [NPPubDay])=32,"Friday
","") & IIf((64 And [NPPubDay])=64,"Saturday" ,"")
When the query runs - I'm getting nothing in the [Published] field.
What am I doing wrong?
I was expecting stuff like...
Monday Wednesday Friday
Sunday Wednesday
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Tuesday Thursday
Monday Tuesday Wednesday Thursday Friday
But, as I said, I'm getting nothing.
Comment