Query field

Harry_38

Registered User.
Local time
Today, 23:01
Joined
Jan 14, 2011
Messages
47
I have a table that contains a field with 30 characters.
Query: If the 15th character of that field is a 2 then that field of the query should return a '2' else it should be '1'.
How to do that in a query?
 
Untested

IIF(Instr(YourfieldName,"2")=15,"2","1")
 
Jdraw, : it worked (but , should be ; )
thanks a lot
 

Users who are viewing this thread

Back
Top Bottom