Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2003
    Posts
    1

    Unanswered: errors with dsum and dcount

    I am using dsum and dcount in text boxes on forms. On certain records these work very well, while on other records, I get "#error". The errors are data dependent. How can I trap the errors without resorting to VBA?

  2. #2
    Join Date
    Jan 2003
    Location
    Rockville, MD
    Posts
    179
    If the expression in your control source looks something like this:
    Code:
    =DSum(expr, domain[, criteria])
    Try using the Nz() function to remove nulls.
    Code:
    =Nz(DSum(expr, domain[, criteria]), 0)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •