I have a database that is used to track assignments. When an assignment is entered, a "Received Date" and "Due Date" are entered. Also in the table there exists a field called "Overdue" which is used on reports to signify whether an assignment is overdue. It is a Yes/No field; the default is "No."
I would like to automatically have the "Overdue" field changed from the default of "No" to "Yes" when the "DueDate" of a particular record becomes less than today's date.
I've added code that accomplishes this when the data entry/edit forms are opened, but if the database is used and those forms aren't opened, the "Overdue" field for each record is not affected.
My question is this:
Each time the database is opened, how can I compare the "DueDate" of each record to that day's date and, for those records where DueDate < Today, change the "Overdue" field from the default of "No" to "Yes?"
Thanks in advance for your help.
KerryL
I would like to automatically have the "Overdue" field changed from the default of "No" to "Yes" when the "DueDate" of a particular record becomes less than today's date.
I've added code that accomplishes this when the data entry/edit forms are opened, but if the database is used and those forms aren't opened, the "Overdue" field for each record is not affected.
My question is this:
Each time the database is opened, how can I compare the "DueDate" of each record to that day's date and, for those records where DueDate < Today, change the "Overdue" field from the default of "No" to "Yes?"
Thanks in advance for your help.
KerryL