• Replace zero with Null (2003)

    Author
    Topic
    #431638

    In a query, I have a field called FA Members. Whenever there is a zero, I would like it to be Null. How would I define a new column, so that I have that field with the 0’s defined as null. FAMem2: IIF([FAMembers] = 0,?,[FAMembers]). I wasn’t sure how to define null and of course my syntax is probably wrong.

    Viewing 1 reply thread
    Author
    Replies
    • #1010686

      You should be able to use Null:

      FAMem2: IIf([FAMembers]=0,Null,[FAMembers])

    • #1010687

      Why not use an update query with the update to as Null, no quotes, and the criteria as 0.

    Viewing 1 reply thread
    Reply To: Replace zero with Null (2003)

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

    Your information: