border20
Registered User.
- Local time
- Today, 14:00
- Joined
- Jan 8, 2003
- Messages
- 92
Hi, I have 4 fields in a query that can have a alphanumerical value, 0 or null
but when there is a value, they are the same for one ID :
example
0 0 1 0
2 2 2 0
0 0 3
3 0 3 0
8 0 0
0 0 0 0
I want to add a 5th field that would show the value if anyone of the fields has a value like so :
0 0 1 0 1
2 2 2 0 2
0 0 3 3
3 0 3 0 3
8 0 0 8
0 0 0 0
i tried this query code but it showed an error
field5: IIF([field1]<>0;[field1];IIF([field2]<>0;[field2];IIF([field3]<>0;[field3];IIF([field4]<>0;[field4];null
)))
Can anyone tell me why ??
thx !!!
but when there is a value, they are the same for one ID :
example
0 0 1 0
2 2 2 0
0 0 3
3 0 3 0
8 0 0
0 0 0 0
I want to add a 5th field that would show the value if anyone of the fields has a value like so :
0 0 1 0 1
2 2 2 0 2
0 0 3 3
3 0 3 0 3
8 0 0 8
0 0 0 0
i tried this query code but it showed an error
field5: IIF([field1]<>0;[field1];IIF([field2]<>0;[field2];IIF([field3]<>0;[field3];IIF([field4]<>0;[field4];null

Can anyone tell me why ??
thx !!!