If there is a property that you have to indicate Edit Mode, you can put the code in an Access or Assign method (whichever suits you best). If not then probably put a call in your code that puts the form into "Edit" mode.
Also some frameworks use a Pre/Execute/Post type of structure where you have a Method (Edit) that calls the other three that way you can insert code you want to happen before the Edit in the Pre and code you want to happen afer the the Edit in the Post.
Basically you'd have an Edit method that has:
This.PreEdit()
This.ExecuteEdit()
This.PostEdit()
Aloha,
James
>I am changing a table so that it now depends on the values of two fields instead of 1 (an item code (6 chars) and a site code (1 char).
>
>In add mode I can use infoseek to see if a record exists and if it does go back to item code field and display a message to re-enter or exit add mode.
>
>In edit mode I want to
only check if a new site code is entered. I know I can defne a property to assign the original value too. My question is what is the best place to save the initial value of site code (i.e. which method) since it has to change when going into edit mode for that particular record? Edit mode is entered via a button. Should it be the init menthod of that button or something else?