I have set-up my recordset as follows:
Set rst2 = da_dbs.OpenRecordset("SELECT Services_Rendered.*, CrimeVictim.*, Crime_Case.* FROM Courts INNER JOIN (CrimeVictim INNER JOIN (Crimes INNER JOIN (Crime_Case INNER JOIN Services_Rendered ON Crime_Case.Crime_Case_ID = Services_Rendered.CrimeCase_ID) ON Crimes.Crime_ID = Crime_Case.Crime) ON CrimeVictim.Crime_Victim_ID = Crime_Case.CrimeVictim_ID) ON Courts.Court_ID = Crime_Case.Court order by victim_lname ASC", dbOpenDynaset)
rst2.edit
::user edits record::
rst2.update
I have tried the following code before and after rst2.update but receive the error "3251 Operation is not supported for this type of object"
'change log routine
If rst2.Fields("Victim_Fname").OriginalValue <> rst2.Fields("Victim_Fname").Value Then MsgBox ("Victim First Name has changed") End If
When I get the error the following line of code is highlighted rst2.fields("Victim_Fname").OriginalValue
Is the originalvalue property usable with DAO and if it is, what must I change to make it work?
I just need a way of monitoring changes to the record and this seemed like an easy way of doing it if it would let me.
Thanks.
Set rst2 = da_dbs.OpenRecordset("SELECT Services_Rendered.*, CrimeVictim.*, Crime_Case.* FROM Courts INNER JOIN (CrimeVictim INNER JOIN (Crimes INNER JOIN (Crime_Case INNER JOIN Services_Rendered ON Crime_Case.Crime_Case_ID = Services_Rendered.CrimeCase_ID) ON Crimes.Crime_ID = Crime_Case.Crime) ON CrimeVictim.Crime_Victim_ID = Crime_Case.CrimeVictim_ID) ON Courts.Court_ID = Crime_Case.Court order by victim_lname ASC", dbOpenDynaset)
rst2.edit
::user edits record::
rst2.update
I have tried the following code before and after rst2.update but receive the error "3251 Operation is not supported for this type of object"
'change log routine
If rst2.Fields("Victim_Fname").OriginalValue <> rst2.Fields("Victim_Fname").Value Then MsgBox ("Victim First Name has changed") End If
When I get the error the following line of code is highlighted rst2.fields("Victim_Fname").OriginalValue
Is the originalvalue property usable with DAO and if it is, what must I change to make it work?
I just need a way of monitoring changes to the record and this seemed like an easy way of doing it if it would let me.
Thanks.