Results 1 to 6 of 6
  1. #1
    sdc1234 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    89

    Dates

    Greetings,

    I have a list of classes completed by students, the list is for past and future classes, is there a script I can write that states that even though they are scheduled to take the class, but for a future date, they will still pop up on the roster that I create.

    v/r


    novice

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    What exactly do you need? Just because student has taken classes doesn't prevent listing student in a combobox.
    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
    sdc1234 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    89
    I import a student roster that I receive and it has people set to take class next month, it is set to default on their end as passed even though they have yet to take the course, so when I import it in and try to pull a roster it needs to populate those names, I keep thinking bout an IIF(startDate<=Now(),0,1), but that would not give me the whole thing...

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    You need to pull the roster for a class for a particular date (or before current date)? Don't include the passed/notpassed field as filter criteria.

    Why would date criteria not give you 'whole thing'? I don't know your data structure and don't understand the issue.

    You want a roster of what?
    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.

  5. #5
    sdc1234 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    89
    A roster of students who need the course, the import has a list of students who are scheduled but have not yet taken the course

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    How do you know which students need course - all of them?

    This requires a dataset of all possible student/course pairs. This can be created with a query that pulls from Students and Courses. Do no use JOIN clause and the output will be a Cartesian relation of all records in each table to all records in other table.

    SELECT StudentID, CourseID FROM Students, Courses;

    If you want to know which students are not yet registered for courses, join that query to the dataset of student registration, link on both common fields (a compound join). JOIN type of "Include all records from StudentCourses and only those from Registration that match".

    Set filter criteria of Is Null under the Registration table CourseID field.

    If you also want student names and course names, include those tables in the query as well.
    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. Replies: 8
    Last Post: 12-02-2013, 03:46 PM
  2. List Dates between Start and Finish Dates
    By Buddus in forum Queries
    Replies: 1
    Last Post: 07-26-2013, 01:58 PM
  3. Query input dates for range of dates in two fields
    By kagoodwin13 in forum Queries
    Replies: 3
    Last Post: 02-13-2012, 04:25 PM
  4. Replies: 10
    Last Post: 11-16-2011, 10:58 AM
  5. Mixed dates - show only complete dates?
    By weeblesue in forum Queries
    Replies: 3
    Last Post: 10-27-2010, 02:15 PM

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