Thanks Jaymer,
Making it the last statement was the trick. Edit/View didn't seem to matter.
I had three operations in the process.
- Set some session variables.
- If logged In User is an employee VIEW PASS USING Main NOEDIT
- IF logged In User is not an employee VIEW PASS USING Main
I changed 2 & 3 to be one operation as follows:
If LoggedInUser.AccessLevel='Employee' Then
VIEW PASS USING Main NOEDIT
ELSE VIEW PASS USING Main
Works like it should now.