Results 1 to 6 of 6
  1. #1
    drnld is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    28

    View only specific records in form view

    Hi - I have attached a student database that I created using the student database template in Access and have added additional tables, queries, etc. to fit our needs. One of the issues I'm having is users who are not very computer literate don't always remember if they have entered the right dates for attendance. I had the idea of creating a "sample" student for each corresponding cycle with 100% attendance so they can compare what they have entered to what they "should" have entered. The reports are based on a query, so I know I can have the sample student show up with the correct information there. However, in the STUDENT DETAILS FORM, there is a pre-made code for the student's names to appear in the drop down and when you forward to the next record.

    Can I have that altered to only show the ACTIVE students? This way the termed students would also not be a part of this drop down. I should still be able to go into the table itself and put in the sample student information when I create a new cycle, correct? Is there a better way to do what I'm asking?



    Thanks for any help.
    Attached Files Attached Files

  2. #2
    razors1968 is offline Novice
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    18
    Hi drnld, do you want the change for the drop down to be permanent? The information for the drop down (Combo box) is controlled by the RowSource property. It is easy enough to change this so that the drop down will filter out any students who do not have 'Active' status in the enrolment column?

    Let me know if I have got that right and I will explain how to make the changes to the underlying query.

    Razors

  3. #3
    drnld is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    28
    Actually, yes, that is exactly right. I only want active to show up in that drop down list.

  4. #4
    razors1968 is offline Novice
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    18
    OK, to change the underlying query.

    1. Open the form in design view
    2. Select the combo box
    3. To the right of the screen you should see the 'Property Sheet', select the 'Data' tab
    4. Find 'Row Source' in the left hand column and place the cursor in the right hand column (This begins 'SELECT [ID].....
    5 An Elipsis (three dots) button should appear on the far right, when you click this the query builder will appear.
    6 You should see 4 fields in the query already {ID], [Student Name],[EMAil Address], [Home Phone]
    7 We need to add [Enrollment] as an extra column. Click in the first free column next to [Home Phone]
    8 Click the drop down arrow and select 'Enrollment'
    9 In the Criteria Row (fifth row down) type "Active"
    10 Hit save and close the query builder, you may be asked if you want to update the Row Source Property, answer 'yes'
    11. Save the form and then view in form view.

    In your sample database none of the students had anything other than and 'active' status so they will all still be returned.

    What we have effectively done is applied an additional filter to the underlying dataset for the combo box.

    Please let me know how you get on.
    Good luck.

    Cheers

    ray

  5. #5
    razors1968 is offline Novice
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    18

    Changes made

    MA Day Program Attendance- Audrey - Copy1.zip
    I have tried to attach the modified file. I am new to this site so not sure if I have managed to attach or not??

    Cheers

    Ray

  6. #6
    drnld is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    28
    Works AWESOME! Thanks Ray and by the way... your file did indeed attach. Thanks so much for your help!

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

Similar Threads

  1. Replies: 6
    Last Post: 05-09-2014, 09:03 AM
  2. Replies: 2
    Last Post: 03-09-2014, 03:21 PM
  3. Replies: 5
    Last Post: 12-03-2013, 01:25 PM
  4. Replies: 8
    Last Post: 04-29-2013, 11:23 AM
  5. Cannot view all records in form view
    By thar2hag in forum Forms
    Replies: 1
    Last Post: 11-01-2012, 08:43 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