Page 4 of 4 FirstFirst 1234
Results 46 to 53 of 53
  1. #46
    bradp1979 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Location
    San Francisco, CA
    Posts
    234
    Quote Originally Posted by June7 View Post
    .



    And I am confused. Why does the Count() expression show "Yes" and not a number?
    I just copied what you had in the MVR field in post 23

  2. #47
    bradp1979 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Location
    San Francisco, CA
    Posts
    234
    The error message in the text box:
    Click image for larger version. 

Name:	error.png 
Views:	7 
Size:	8.1 KB 
ID:	21908

  3. #48
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    That is because the textbox has same name as the field referenced in the expression. Change the textbox name to something like: tbxMVR.
    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. #49
    bradp1979 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Location
    San Francisco, CA
    Posts
    234
    Done, and the error went away.

    However, when I go back to report view, I'm still seeing the same thing I showed in the image in post 42. It's showing "Yes" for everyone, even though none of them have a "yes" in the MVR column of tblRelEventEmployee. For each of them, it should show a 0. There is only one employee that I have selected as MVR so that I could test the report, so he should be the only one with any "1"s.

  5. #50
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Make sure the Format property of the textbox does not say Yes/No.
    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.

  6. #51
    bradp1979 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Location
    San Francisco, CA
    Posts
    234
    Ok, now we're getting somewhere. Now the MVR column does have a count, but none of them are 0... It seems to be counting the number of shifts worked as opposed to the number of times selected as MVR.

  7. #52
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Sorry, try Sum instead of Count in the textbox expression.

    Also, need to change the SQL statement to pull EmployeeID from tblEmployees and bind textbox to that field. And fix the EmployeeID header grouping field.
    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.

  8. #53
    bradp1979 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Location
    San Francisco, CA
    Posts
    234
    Ok, it's been a while since I tackled this issue, but now I've got it looking exactly how I want (shown below). The next issue to tackle (pulling the report using a date parameter) will be in a new post.

    Click image for larger version. 

Name:	mvr report.png 
Views:	4 
Size:	32.5 KB 
ID:	22128

Page 4 of 4 FirstFirst 1234
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 01-31-2015, 02:44 PM
  2. Create a "Totals" row for each column in crosstab
    By accessnewbie352 in forum Queries
    Replies: 13
    Last Post: 01-06-2015, 12:28 PM
  3. Replies: 3
    Last Post: 04-29-2014, 04:49 PM
  4. Column sum works in "Detail" but not "Footer"
    By Doodlebug2000 in forum Reports
    Replies: 1
    Last Post: 12-10-2012, 03:20 PM
  5. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 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