Results 1 to 3 of 3
  1. #1
    SealM is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    40

    Error in Report when value is not Found

    This is probably a simple solution, but I haven't found a good example I can apply when searching here. I'm attaching my database, and I've stripped out everything that doesn't pertain to this particular report. The report in question is the SUMMARIZED report. I've left the detailed one in there for perspective.

    Here's the problem. In the RAW table, there is a field called "Business_or_Personal" (I know, silly name). This field is a user-input field from the e-mail collection process. It will have either "Business", "Personal", or "other" in it. This is all good, and works fine. The SUMMARIZED report, however, only will display and calculate if there is one of each of these three items in the "business_or_personal" column. In other words, when I go in and remove the "other" from the table in this column, the report no longer runs.

    I don't know if this is a problem with the query associated with the report, or the report itself. This was my first pivot query, and I did some new stuff to sum(total) in the report. I can't tell where specifically the error would be coming from though.

    Any help would be great! Thanks in advance!!
    test.zip

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,621
    This is the problem with reports based on dynamic crosstab queries. The report has textboxes bound to fields Business, Personal, Other, <> but if the query does not generate a field for each of these bound textboxes the report errors.

    Google: Access dynamic crosstab query report

    Here is one: http://allenbrowne.com/ser-67.html#ColHead

    Specifying these Column Heads seems to work for your query: "Business","Personal","Other",Null
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    SealM is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    40
    That worked brilliantly! Thanks for the reference material as well. In the website it listed a bad condition being that ONLY column headings that you list would show up, but adding the NULL at the end of it worked as a catch-all in my case, as I only wanted a column of the count of items NOT in the other columns as well. Thanks so much!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Error Message -- Path not found.
    By alansidman in forum Programming
    Replies: 5
    Last Post: 05-28-2013, 01:58 PM
  2. Error Data macro could not be found
    By RoyLittle0 in forum Access
    Replies: 2
    Last Post: 12-26-2012, 10:50 AM
  3. Compiler error: Method or member not found
    By JosmithTwo in forum Programming
    Replies: 3
    Last Post: 11-26-2012, 07:10 AM
  4. Replies: 7
    Last Post: 06-08-2012, 09:55 PM
  5. Compile Error: Method or data member not found
    By subtilty in forum Programming
    Replies: 5
    Last Post: 02-09-2012, 07:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums