Results 1 to 2 of 2
  1. #1
    floridamom is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2015
    Posts
    1

    Writing an Expression in a Query to advance a student's grade 1 year on a specific date


    I'm developing a database for a non-profit group that works with kids. I have a query that is pulling the Student's names, ages, school name, and grade. I need to write an expression within the query that will advance the student's grade (for example from 6th grade to 7th grade) on August 1 of every year. Any suggestions?

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,840
    A quick comment, It would be better to be storing the date of birth rather than age - otherwise every year you need to update that as well.

    as for your question, from the information provided you need to use an update query and run it on 1st August

    UPDATE myTable SET Grade= Grade+1

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

Similar Threads

  1. Replies: 5
    Last Post: 01-04-2017, 02:13 AM
  2. Replies: 2
    Last Post: 05-20-2014, 02:28 PM
  3. Previous Year Data Query Expression
    By NotReese in forum Queries
    Replies: 4
    Last Post: 11-22-2013, 04:54 PM
  4. Replies: 8
    Last Post: 12-05-2012, 07:24 PM
  5. advance date reminder
    By Denis in forum Database Design
    Replies: 1
    Last Post: 11-14-2010, 07:40 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