Results 1 to 9 of 9
  1. #1
    Kundan is offline Competent Performer
    Windows XP Access 2013 32bit
    Join Date
    Mar 2018
    Posts
    155

    Vanishing Columns

    In my query I have 2 columns A & B. I insert a 3rd column Tot:NZ(A) + NZ(B). It some times happens that A or B does not have any values and I get an error message Cannot Find A or Cannot find B. How to overcome this problem?

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    I suspect your query is referencing a crosstab query but pure guesswork without more information

    suggest provide the sql to your query and some example data from the tables referenced by the query where you get the error message.

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    if you don't provide the value if Null parameter Nz returns either 0 or a zero length string (zls or "") according to web. Math with Null = Null.
    Is there a reason why you don't provide a value if null?
    Last edited by Micron; 06-26-2019 at 07:09 PM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Kundan is offline Competent Performer
    Windows XP Access 2013 32bit
    Join Date
    Mar 2018
    Posts
    155
    In the attached db Smdr may or may not occur on any date. But it has to be included in the calculation in Qry_FN_F_TotMdrF​. Hence it is giving error in this query. How to overcome this problem?
    .
    Attached Files Attached Files

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    modify your daily totals crosstab to include the column headings you require, whether or not they have values. in query design you can find the column heading properties in the properties window. So it might be

    Adv, Mem, Vmdr, Smdr

  6. #6
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    See if this is what you need
    Attached Files Attached Files

  7. #7
    Kundan is offline Competent Performer
    Windows XP Access 2013 32bit
    Join Date
    Mar 2018
    Posts
    155
    It Worked. Thanks a lot! GOD BLESS YOU!!!!!

  8. #8
    Kundan is offline Competent Performer
    Windows XP Access 2013 32bit
    Join Date
    Mar 2018
    Posts
    155
    Quote Originally Posted by Ajax View Post
    modify your daily totals crosstab to include the column headings you require, whether or not they have values. in query design you can find the column heading properties in the properties window. So it might be

    Adv, Mem, Vmdr, Smdr
    Thanks, it worked. GOD BLES YOU!!!!!!!!!!

  9. #9
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    other benefit (which you may have noticed) is by using column headings is you can set the order of the (calculated) columns

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

Similar Threads

  1. Vanishing Thread
    By Bob Fitz in forum Misc
    Replies: 2
    Last Post: 10-17-2018, 12:39 PM
  2. Replies: 3
    Last Post: 10-24-2017, 05:16 PM
  3. Replies: 2
    Last Post: 04-13-2017, 02:49 PM
  4. Dynamic Columns - Import new columns?
    By memaxt in forum Import/Export Data
    Replies: 2
    Last Post: 06-24-2014, 06:02 AM
  5. Replies: 1
    Last Post: 12-03-2012, 02:45 PM

Tags for this Thread

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