• ISERROR

    Author
    Topic
    #471644

    I have people throwing all kinds of junk in a basic text field where they should be entering an actual number. (This is another program not contolled by me because OF COURSE i would change that!!!!) When the data is returned in my query, I want to take those numbers and do a simple [FIELD] * 1 to convert it to an actual number to join it to another query. Because of the garbage, i return errors on some of the rows. I thought a simple formula simlar to what i would use in excel would do the trick. alas, it’s not working as i expected. can someone help get me over my stumbling block? As always, thanks!

    IIF(ISERROR([field] * 1),””,[field] * 1)

    Viewing 0 reply threads
    Author
    Replies
    • #1244227

      Try using IsNumeric to test and see if the field can be converted to numbers. The IIF construct should work with that, and give you the option to set it to whatever you want, Nulll, 0, 1 or something else.

    Viewing 0 reply threads
    Reply To: ISERROR

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: