Results 1 to 6 of 6
  1. #1
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    161

    Cross tab help

    We have a crosstab query with Courses at Column Heading and Name as Row Heading And Amount as Value field.


    We need to have value of all the Courses data in table ( Sourse of Cross tab Query) If one of more Courses do not have Data value than report based on crosstab give error asking for missing/null value of missing Courses.
    Is their is any way to give missing value and report will work without error?
    Thanks in advance

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    Do you mean you want to assign 0 to thoses course which are null?

    use isnull(amount,0) instead of amount as value in crosstab.

  3. #3
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    161
    I want to assign o to non exist course say if a course A Does not Exist in My Table it will not come in Crosstab query. But Course A Exist in Report which has crosstab as sourse.Report shows me error asking for non exist Course A.
    Is their a way to assign o to non exist course A in Cross tab query or in report.
    isnull(amount,0) instead of amount as value in crosstab does NOT work in cross tab query
    Any other way out?

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    How do you have course A in your report while it is not in the crosstab query?

    do you have other course B, course C ... in report but not in query?

  5. #5
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    161
    Table data few times have Course A But not always so it is added to report.
    When Course A exist in Table , hence in Cross tab it will come in Report But sometimes if their is no entry of Course A in Table than report shows error for non exist Course A
    Is their a way to assign o to non exist course A in Cross tab query or in report.
    If Course A Does Not Exist ( Null Valus ) Than consider as 0? How to do this?

  6. #6
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    If course A doesn't exist, we don't know it doesn't exist unless you have courses list some where.

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

Similar Threads

  1. Cross-tab query YTD
    By stremchem in forum Queries
    Replies: 9
    Last Post: 08-26-2010, 10:09 AM
  2. Cross Tab Query
    By RycherX in forum Queries
    Replies: 1
    Last Post: 04-26-2010, 12:19 PM
  3. Reverse Cross Tab
    By indiana in forum Access
    Replies: 1
    Last Post: 03-12-2010, 10:11 PM
  4. Cross Tab Queries
    By Nixx1401 in forum Access
    Replies: 6
    Last Post: 02-16-2010, 11:55 AM
  5. Cross Tab Query
    By nengster in forum Queries
    Replies: 0
    Last Post: 02-18-2009, 07:12 PM

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