OH MY GOD - that was it?!
Yup that did the trick! I still have a few changes i need to do to that code - such as dynamicly assign the enum values to the param variable, but that should not be a problem. Those user permissions are actually comming from the Active Directory depending what groups a user belongs to. Currently i am putting those into an array.
Dim param As e_SecurityCodes = e_SecurityCodes.DMS_Accounting_PR
I might start another thread tomorow depending if i can figure out how to dynamicly create the enum structure based on rows in a table - i like keeping things flexible. But i am gonna play around with this for a while.
Thank you SO much, you have realy gone out of your way to explain things to non dot netter.