Results 1 to 4 of 4
  1. #1
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Bound columns in Forms and resetting values


    Hi Everyone,

    I have a form for student attendance that is bound to a query and stores a temporary value for ClassesAttended in a StudentEnrollment table as faculty enters the attendance. They then run an append query to write the temporary records to a StudentAttendance table. Because the ClassesAttended field is bound, when the form is opened, it recalls the last number entered for that student in that class as entered by the faculty the last time attendance was updated. I tried leaving the field unbound, but the first value enter into the first record of the form is updated automatically to all subsequent records.

    Is there a way to change the properities, use code, etc. to assigne a null or 0 to the ClassesAttended field when the form opens, without the first updated record to propagate through the reaming records?

    Thanks amd take care,

    Daryl

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    You could look at the NZ() function
    http://www.techonthenet.com/access/f...dvanced/nz.php

    but I think you should look at this data model
    http://www.databaseanswers.org/data_...ters/index.htm

    specifically the ROSTER table

  3. #3
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Thanks for the reply and links. The table structure from "databaseanswers" is similiar to mine. I will try the NZ() function.

    Take care,

    Daryl

  4. #4
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Hi,

    Thanks for the reply. I was able to update the field to a null value.

    Take care,

    Daryl

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

Similar Threads

  1. Replies: 2
    Last Post: 05-17-2012, 03:52 PM
  2. Bound Forms
    By ruci1225 in forum Forms
    Replies: 3
    Last Post: 08-16-2011, 12:41 PM
  3. Bound Forms
    By bobsmith in forum Forms
    Replies: 1
    Last Post: 04-21-2011, 11:35 AM
  4. Replies: 1
    Last Post: 04-19-2011, 04:46 PM
  5. Resetting Option Group Values
    By oleBucky in forum Forms
    Replies: 4
    Last Post: 03-31-2011, 05:19 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