No I don't want it to save when I hit Cancel but I get the prompt. I think I get the prompt because I populate the field with the extra_6 field value on the description_gotfocus event. If I am not populating the value from a SQL query, it is always blank even if there is data in the table for the item selected.
I tried to save the value in the table as soon as I display it but I still get the prompt when I hit Cancel.
Here is what I want to do. I have create a custom text field from the Designer to show the value of the extra_6 field from the imitmidx_sql table. I looked if there was a hidden field for the extra_6 but there was not. Because the custom field on the screen is not directly related to extra_6, I have created a function in macform to display the value of extra_6 for the selected item. This function is called in the getfocus event of the Description field. There is another function to save the value of the extra_6 in the database and it is called on the losefocus event of the custom field.
So far, what ever I am trying to do, I always get the prompt. To get rid of the prompt, I have to comment the function to display the value of extra_6 in the custom field on the screen. But I have to see the value somewhere in the screen and the user can change the value as desired.
Is there something I do wrong???