G
Guest
I have a table called "tblMedication" with the following situation: For every
patient there has to be 2 types of medications per treatment date ex:
PatientID DateofTreatment MedicationType
1 1/1/2006 Med1
1 1/1/2006 Med2
For every date there should be 2 records only. I am trying to perform the
following action:
Editing existing dates in the "DateofTreatment" field:
Upon editing the old date to new one, I want to check if the new date exist
or not. If it does, then, I will undo the change i.e.(set the date back to
the original date) and generate a message saying that the date can not be
changed because it will creat duplicate records. If the new date does not
exist in the table, then accept the new date for both recordsi.e.(Med1and
Med2). any ideas
Thanks
Al
patient there has to be 2 types of medications per treatment date ex:
PatientID DateofTreatment MedicationType
1 1/1/2006 Med1
1 1/1/2006 Med2
For every date there should be 2 records only. I am trying to perform the
following action:
Editing existing dates in the "DateofTreatment" field:
Upon editing the old date to new one, I want to check if the new date exist
or not. If it does, then, I will undo the change i.e.(set the date back to
the original date) and generate a message saying that the date can not be
changed because it will creat duplicate records. If the new date does not
exist in the table, then accept the new date for both recordsi.e.(Med1and
Med2). any ideas
Thanks
Al