Results 1 to 5 of 5
  1. #1
    chris17 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    13

    hide fields from being previewed by a specified report


    Please i have report that i want to filter failed courses but i want the failed courses to be hidden when passed by the student. I dont want the course failed to removed because it ll be used some other place but want to hide it in the failed course report if passed. Thanks as i expect your help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Apply filter to report so those records are excluded.
    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.

  3. #3
    chris17 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    13
    Please I don't really understand.

  4. #4
    chris17 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    13
    The picture contains an illustration of what i am trying to explain.
    Attached Thumbnails Attached Thumbnails Illustration_1.png  

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I don't know your data structure so can only offer generalities. Try someting like:

    Query1
    SELECT StudentID, CourseID, Grade FROM StudentCoursesGrades GROUP BY StudentID, CourseID, Grade HAVING Grade <> "F";

    Then join Query1 to StudentCoursesGrades table:
    SELECT StudentCourseGrade.ID, StudentCourseGrade.StudentID, StudentCourseGrade.CourseID, StudentCourseGrade.Grade
    FROM Query1 RIGHT JOIN StudentCourseGrade ON (Query1.StudentID = StudentCourseGrade.StudentID) AND (Query1.CourseID = StudentCourseGrade.CourseID)
    WHERE (((Query1.Grade) Is Null));

    Or as nested subquery:
    SELECT StudentCourseGrade.ID, StudentCourseGrade.StudentID, StudentCourseGrade.CourseID, StudentCourseGrade.Grade
    FROM (SELECT StudentID, CourseID, Grade FROM StudentCoursesGrades GROUP BY StudentID, CourseID, Grade HAVING Grade <> "F") As Query1 RIGHT JOIN StudentCourseGrade ON (Query1.StudentID = StudentCourseGrade.StudentID) AND (Query1.CourseID = StudentCourseGrade.CourseID)
    WHERE (((Query1.Grade) Is Null));

    Or use DLookup instead:
    SELECT StudentCourseGrade.ID, StudentCourseGrade.StudentID, StudentCourseGrade.CourseID, StudentCourseGrade.Grade, DLookUp("Grade","StudentCourseGrade","StudentID=" & [StudentID] & " AND CourseID=" & [CourseID] & " AND Grade<>'F'") AS NonFGrade
    FROM StudentCourseGrade
    WHERE (((DLookUp("Grade","StudentCourseGrade","StudentID =" & [StudentID] & " AND CourseID=" & [CourseID] & " AND Grade<>'F'")) Is 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.

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

Similar Threads

  1. Hide Fields With Null Values
    By jay in forum Reports
    Replies: 6
    Last Post: 09-22-2011, 07:23 AM
  2. jzwp11 Code - Visible/Hide fields
    By GraemeG in forum Programming
    Replies: 19
    Last Post: 02-17-2011, 11:30 AM
  3. Hide or Unhide Fields in Query using VB
    By SCFM in forum Programming
    Replies: 4
    Last Post: 03-12-2010, 01:24 PM
  4. Cannot hide fields in a datasheet
    By desgordon in forum Forms
    Replies: 2
    Last Post: 08-19-2009, 03:24 PM
  5. how to hide the fields in subform
    By tinytree in forum Forms
    Replies: 3
    Last Post: 05-01-2009, 07:56 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