B
Benjamin Piercy
Dear all,
I am creating a univeristy application database for an
ICT A-level project.
As students leave school they need to be removed from
student table and archived in a exact replica of this
table. I have produced such a table and called it
TblArchiveStudents.
An Append query was created, which appended students
who's leaving date had passed. The criteria used in the
query was <=Date(), which meant that all students whos
leaving date had passed todays current date were
archived, as the query was run.
A delete query was then used alongside this with the same
criteria to delete these student's from the main table,
as they had now all been archvied, thus could be deleted.
I have produced my database at both home and school
transferring the data via CD at the end of every day or
school week. Both versions of Access that i am using at
home and school are identical yet the queries wont work!
The message i get is: Undefined function 'Date' in
expression.
I couldnt get round this problem so i changed the
criteria to <now() and this worked for the Append Query,
however the Delete query was still not working.
A different error was now reported which stated that key
and lock violations were occuring. I know that the
criteria is correct and have been told by technicians
that it may be down to compatability, although the
programs match....
Can anyone shine some light on this situation, which is
ruining my life....?
Any help would be VERY MUCH APPRECIATED.
Best regards to all readers
Benjamin Piercy
I am creating a univeristy application database for an
ICT A-level project.
As students leave school they need to be removed from
student table and archived in a exact replica of this
table. I have produced such a table and called it
TblArchiveStudents.
An Append query was created, which appended students
who's leaving date had passed. The criteria used in the
query was <=Date(), which meant that all students whos
leaving date had passed todays current date were
archived, as the query was run.
A delete query was then used alongside this with the same
criteria to delete these student's from the main table,
as they had now all been archvied, thus could be deleted.
I have produced my database at both home and school
transferring the data via CD at the end of every day or
school week. Both versions of Access that i am using at
home and school are identical yet the queries wont work!
The message i get is: Undefined function 'Date' in
expression.
I couldnt get round this problem so i changed the
criteria to <now() and this worked for the Append Query,
however the Delete query was still not working.
A different error was now reported which stated that key
and lock violations were occuring. I know that the
criteria is correct and have been told by technicians
that it may be down to compatability, although the
programs match....
Can anyone shine some light on this situation, which is
ruining my life....?
Any help would be VERY MUCH APPRECIATED.
Best regards to all readers
Benjamin Piercy