I have had a problem and just realised what is causing it. This is the scenario ...
I have a browse of Species with validation on it. Normally I want to see all Species records, but if I am selecting Species on a Patient form then I only want to see a subset of the Species.
On the Patient Form where I select these records I set a session variable and use that to control the Species selection. No problem there. On closing the Patient Form in Cancel I set the session variable to null. The idea is that then I can view the Species file independently and see all the records.
However the session variable was still set until I realised that the Browse Patient was still calling the update form behind the scenes and setting the variable (I have it declared in Setup Procedure).
So once I close the patient Form, how can I ensure that the variable is set to Null. Clealy I need to set the variable other than in procedure setup but where?
Thanks
John