Results 1 to 4 of 4
  1. #1
    shank is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    188

    Cross Tab Report - IF Exists

    MS Access 2019

    I have a report with 30+ fields that get data from a cross tab query.

    Problem: data is not always present for every intended report field which translates to their not always being a matching field in the query. How can I force the report to open without error when there's no fields in the underlying query?

    If possible, assuming any given field does not exist, I would like to substitute a 0 or Null.

    Thanks!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    See if the "Specify column headings" section works for you:

    http://allenbrowne.com/ser-67.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    shank is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    188
    Success! I found a similar post earlier, but I apparently got the syntax incorrect. For delimited character I was using a quote ". This time I used an apostrophe ' and success!

    Thanks for the nod to get my head straight!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 4
    Last Post: 08-15-2017, 08:44 AM
  2. Cross-Tab Report?
    By WCStarks in forum Reports
    Replies: 12
    Last Post: 08-14-2017, 03:14 PM
  3. Summing a Cross Tab in Report Footer
    By Tammy in forum Reports
    Replies: 1
    Last Post: 11-28-2014, 02:08 AM
  4. Cross tab report
    By wnicole in forum Reports
    Replies: 2
    Last Post: 10-09-2013, 05:07 AM
  5. Report is cross printing
    By wildthingcg in forum Reports
    Replies: 6
    Last Post: 01-04-2013, 10:30 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