Update Query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • John Torres
    New Member
    • Jan 2008
    • 42

    Update Query

    How do I use Update Query on my form to zero out the calculated formulas instead of showing error. I have at least 9 fields. One table and these fields are unbound. I'm a newbie so I need like an detailed instructions.

    Thank you all.
    John
  • nico5038
    Recognized Expert Specialist
    • Nov 2006
    • 3080

    #2
    Calculated formula's aren't stored in a table as that's creating redundant data.
    Redundant data in a table is bad design, as you'll need to change it when one of the used variables changes and what happens when you "forget" that...

    Just use "unbound" fields for the formula's and when you want to show it just us the same formula in a query.

    Getting the idea?

    Nic;o)

    Comment

    • John Torres
      New Member
      • Jan 2008
      • 42

      #3
      Thanks.
      On the calculated formula on the form and on the Data Entry mode- How can you make it default to "0" instead of showing "Error"?
      John


      Originally posted by nico5038
      Calculated formula's aren't stored in a table as that's creating redundant data.
      Redundant data in a table is bad design, as you'll need to change it when one of the used variables changes and what happens when you "forget" that...

      Just use "unbound" fields for the formula's and when you want to show it just us the same formula in a query.

      Getting the idea?

      Nic;o)

      Comment

      • nico5038
        Recognized Expert Specialist
        • Nov 2006
        • 3080

        #4
        In general Null values in fields (or typo's) cause this error.
        When you want to be sure Null gives no #error, use the NZ() function like:

        =NZ(field1)*NZ( Field2)

        Nic;o)

        Comment

        • John Torres
          New Member
          • Jan 2008
          • 42

          #5
          THANK YOU. That works!

          Originally posted by nico5038
          In general Null values in fields (or typo's) cause this error.
          When you want to be sure Null gives no #error, use the NZ() function like:

          =NZ(field1)*NZ( Field2)

          Nic;o)

          Comment

          Working...