I would like to insert an if then type variable in my query or when using SQL it is called case. Basically I want to say if MyField = 0 then Lost, if MyField = 1, then Stolen and so on like that. Is this possible? Thanks for the help.
I am getting an error saying the expression is too complicated. I used the exact phrasing in your example. Any ideas on the problem? I do have 5 different numbers that I need to convert to a word if it is true.
I am not sure if this is the correct syntax to add other variables or not. I want it to return Lost if it is a 0 or Stolen if it is 1 otherwise return nothing. I get the same error message when I use the formula you gave in the initial response. Thanks for helping on this. I know it can be done.
So in your query, do you have just one table that it's drawing it's data from? Some times if you have more than one table (or query) that has a fld with the same name you'll have problems... (table 1 and table 2 has a fld with the same name)
No, it is just one table. I do have a form setup that allows the user to select what criteria they would like to see such as a 0 or 1 which I would like to change over to Lost or Stolen. Also, the result does not necessarily have to be in my query. I really just need it on the report because that is all the user will see. I tried the formula you sent on a query with my TypeLoss field and the new field column returned all errors#.
I am thinking that trying to convert a number to text could be the problem. What I have is exactly like your example except for the numbers I am using.