S
Stu
I am trying to create two recordsets from a single form, one when the form is
first opened and a second after updates (not entry) are entered. The first
recordset, rsOpen, is defined on the form_open event:
sNewVal = "Select * from tblClasses where Itemid = " & Me.ItemID
Set rsOpen = CurrentDb.OpenRecordset(sNewVal) ''' get orginal values
The second I would like to define when a Submit button is clicked:
Me.Dirty = False
sNewVal = "Select * from tblClasses where Itemid = " & Me.ItemID
Set rsSubmit = CurrentDb.OpenRecordset(sNewVal) ''' get current values
The problem I'm encountering is that both recordsets have the same field
values, i.e., if Dirty = False both recordsets have the new field values. If
Dirty = true then both recordsets have the old field values. Is there a way
to get the values before updates are entered in my recordset "rsOpen" and
capture the field values after updates are entered in my recordset
"rsSubmit"? Kind of a before and after recordsets. (I'm aware of the
"oldValue" property)
first opened and a second after updates (not entry) are entered. The first
recordset, rsOpen, is defined on the form_open event:
sNewVal = "Select * from tblClasses where Itemid = " & Me.ItemID
Set rsOpen = CurrentDb.OpenRecordset(sNewVal) ''' get orginal values
The second I would like to define when a Submit button is clicked:
Me.Dirty = False
sNewVal = "Select * from tblClasses where Itemid = " & Me.ItemID
Set rsSubmit = CurrentDb.OpenRecordset(sNewVal) ''' get current values
The problem I'm encountering is that both recordsets have the same field
values, i.e., if Dirty = False both recordsets have the new field values. If
Dirty = true then both recordsets have the old field values. Is there a way
to get the values before updates are entered in my recordset "rsOpen" and
capture the field values after updates are entered in my recordset
"rsSubmit"? Kind of a before and after recordsets. (I'm aware of the
"oldValue" property)