I have a database that stores assessments. It is basically a field to link to a table called tblPatient, a date field and 24 question fields. When a new assessment is done it will only usually be 1 to 2 answers to questions that will have changed. The rest are the same as the last assessment. What I have been asked to do is create a new assessment but copy the last assessments answers to the questions and put a new date on the record. Then the user changes the answers they want.
So the table has the following fields;
AssessID
PatientID
AssessDate
Q1
Q2
...
Q24
In a stored procedure - How do I copy the last assessment for a particular PatientID but put the date as a passed in parameter? I then need to return the ID field of the newly created record so that I can show it within my Access front end.
Hope this makes sense. Any help is appreciated. Thanks in advance.
Jonathan
So the table has the following fields;
AssessID
PatientID
AssessDate
Q1
Q2
...
Q24
In a stored procedure - How do I copy the last assessment for a particular PatientID but put the date as a passed in parameter? I then need to return the ID field of the newly created record so that I can show it within my Access front end.
Hope this makes sense. Any help is appreciated. Thanks in advance.
Jonathan