Can anyone help please,
What it is I am trying to record changes made to a tables data, I have two tables tbloriginal and tblHist. What I would like to be able to do is that every time a record is changed within tbloriginal the old record (before update) is written to the tblhist table. I would like to achieve this through the use of a button on a form, for example the button would display save, but when the button is clicked it writes the old values of the record being altered to the table called tblhist.
So for example if tbloriginal has the following three fields ID, forename, surname. And there is a record such as ID= 1, Forename = Fred, Surname = Bloggs. And someone changes the surname to Brown then the original ID = 1 Forename = Fred, Surname = Bloggs is written to the table tblhist, along with the date when the change was made.
I have read through the forums and have seen information regarding creating history tables, but do not find they answer my question.
So if any one could help this would be greatly appreciated.
Thanks.
What it is I am trying to record changes made to a tables data, I have two tables tbloriginal and tblHist. What I would like to be able to do is that every time a record is changed within tbloriginal the old record (before update) is written to the tblhist table. I would like to achieve this through the use of a button on a form, for example the button would display save, but when the button is clicked it writes the old values of the record being altered to the table called tblhist.
So for example if tbloriginal has the following three fields ID, forename, surname. And there is a record such as ID= 1, Forename = Fred, Surname = Bloggs. And someone changes the surname to Brown then the original ID = 1 Forename = Fred, Surname = Bloggs is written to the table tblhist, along with the date when the change was made.
I have read through the forums and have seen information regarding creating history tables, but do not find they answer my question.
So if any one could help this would be greatly appreciated.
Thanks.