Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    If the Final_Vote is a calculated value, why is there a field in table?



    Very odd - CR72-75 should show Approved.

    I created a new query to test the expression. It works. CR72-75 show Approved. So there is something about the report structure.

    I am looking at report Weekly SITREP PPT. Why is the RecordSource an aggregate query - there are no aggregate calcs. I removed the grouping and no change in report output.

    More oddness. CR72-75 are the only records in the report where Action_Complete is False. Only two other records (601, 602) in the table are also false but they aren't even in the report. Also 145 and 146 are True in table but False in report RecordSource query. 145/146 show Hold when there is no value in 06_Vote.

    Summary query is the most complex CROSSTAB I've ever seen.

    Weirdest issues. Ever.

    I can't find the cause. Suggest you rebuild report from scratch, little piece at a time until see the same issues. Start with a simple query of the table that shows the correct Final_Vote calcs.


    Advise no spaces or special characters/punctuation (underscore is exception) in naming convention. Date_ID is better than DateID'd.
    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.

  2. #17
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    CR72-75, 145 & 146 are still in open status, a decision has not been made yet. The reason its an aggregate query is because I was trying to cut down on the actual query tables. Remember this is one of my first dB's I have done. I just started playing with Acces for this. if you look at the Main table CR145/146 both have Hold in the O6_Vote value. I think the difference is that 72-75 are level 1 CR's and do not require a value in the O6_Vote, thus it is null/blank. There might be a requirement to make a if O6_Vote isnull then value = AO_Vote. ??

    CR72-75, 145 & 146 should not have Action_Complete enabled as they have not been completed. When the Final_Vote is filled in then the Action_Complete will be enabled.

    I'll take out the groupings and give it a run. Make it simpler.

    Summary Query was done by me and access. It was a pain to get it going the way I wanted.


    Thanks June

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I did look at Change Request table (the only data table in the db). The data is as I describe. Wait, there are CR_ID and CR_No fields. I was looking at CR_ID. Either way, 72-75 does not have data in O6_Vote. CR_No is used in the report. CR_No 72-75 have "Hold" in AO_Vote. Hold is not a value to consider for AO_Vote field in the Switch expression, therefore it returns 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.

  4. #19
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    Ahh 601/602 = CR 145/146. What do you mean they are not in the report? They are not in the totals because they are not closed yet. Once they go into an Action_Complete Enabled, they will be added to the total for that week.

  5. #20
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    862
    Quote Originally Posted by June7 View Post
    I did look at Change Request table (the only data table in the db). The data is as I describe. Wait, there are CR_ID and CR_No fields. I was looking at CR_ID. Either way, 72-75 does not have data in O6_Vote. CR_No is used in the report. CR_No 72-75 have "Hold" in AO_Vote. Hold is not a value to consider for AO_Vote field in the Switch expression, therefore it returns Null.
    I put the [AO_Vote]="Hold","Hold" in the switch. It now works. Good catch June. Thanks for the assistance.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 06-19-2015, 02:19 AM
  2. Replies: 2
    Last Post: 11-27-2014, 01:06 PM
  3. Replies: 13
    Last Post: 07-09-2013, 07:05 PM
  4. Replies: 3
    Last Post: 03-29-2012, 12:40 PM
  5. Replies: 6
    Last Post: 03-14-2011, 09:37 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