on activate command

J

Jason

In my database I need to create a form that I can revise
the case type of a record. I want to retain the original
case type before it is revised. Im thinking the best way
to do this is when the Revise Case Type Form is activated,
copy the "CaseType" data to the "OriginalCaseType" field
and lock that field so it can not be editted or changed.
Then the user can change the "CaseType" to what they
want. Will that work and what is the code for copying
the "CaseType" to "OriginalCaseType" on the On Activate
property? I appriciate your help, thanks
 
M

Michel Walsh

Hi,



I would just use Me.ControlName.OldValue. OldValue keep the last
validated (committed) value in the RECORD (last time the record was saved,
with success), or since you open the form (if you didn't change the control
for this record since you open the form).


Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

On Open Event 3
Inactivate a subform 2
After Update Property 3
Set Variable to lookup field 2
Tab Control Question 7
Select Case using control names? 3
on open property 1
Check fields when user changes tabs 3

Top