Compile Error in Query Expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • natalie99
    New Member
    • Feb 2008
    • 41

    Compile Error in Query Expression

    Hello everyone!

    I am running a very simple query to populate null fields, and for some reason it has decided to stop working!!!

    What happened????

    Code:
    SELECT LIVE_150108.Region, LIVE_150108.Country, nz([Surcharges],"ZZ") AS SurchargesNZ, LIVE_150108.[Non PriceBook Reason Code]
    FROM LIVE_150108;
    THANKS FOR HELP IN ADVANCE!!

    :) Nat
  • natalie99
    New Member
    • Feb 2008
    • 41

    #2
    FYI: The error message when I try to run the query says:

    Compile error . in query expression nz([Surcharges],"ZZ") .

    Comment

    • ADezii
      Recognized Expert Expert
      • Apr 2006
      • 8834

      #3
      Originally posted by natalie99
      Hello everyone!

      I am running a very simple query to populate null fields, and for some reason it has decided to stop working!!!

      What happened????

      Code:
      SELECT LIVE_150108.Region, LIVE_150108.Country, nz([Surcharges],"ZZ") AS SurchargesNZ, LIVE_150108.[Non PriceBook Reason Code]
      FROM LIVE_150108;
      THANKS FOR HELP IN ADVANCE!!

      :) Nat
      Are you trying to Update Null Values in the [Surcharges] Field to "ZZ", if so?
      [CODE=sql]UPDATE LIVE_150108 SET LIVE_150108.Sur charges = "ZZ" WHERE LIVE_150108.Sur charges Is Null;[/CODE]

      Comment

      • natalie99
        New Member
        • Feb 2008
        • 41

        #4
        Thanks Adezii!

        Any idea why the db started doing this? I checked every library and even re-registered them. Is this oign to happen everytime the software updates run???

        Thanks again.

        Nat

        Comment

        • Fiddler2
          New Member
          • Mar 2008
          • 19

          #5
          Originally posted by natalie99
          Thanks Adezii!

          Any idea why the db started doing this? I checked every library and even re-registered them. Is this oign to happen everytime the software updates run???

          Thanks again.

          Nat
          I hope you get an answer to this. My NZ function has stopped working also, in spite of checking and resetting all my references. Now, in code, I have to explicitly check if a value is null and if so, set it to what would have been my NZ default. Don't know why....

          Comment

          Working...