I am having an issue with implimenting specific security in a database.
The requirement is that when a form loads, a function is called. This function runs through all the controls on the form and sets them to disabled based on information held in a user security table. The calling form passes the form name (me.name) as a parameter. This works fine on its own.
I have two forms A and B. If I open both forms, I have no issue. However if B is a subfom of A, when A opens, the load event of form B (acting as a subform now) crashes because it doesn't recognise the me.name parameter.
Any ideas?
The requirement is that when a form loads, a function is called. This function runs through all the controls on the form and sets them to disabled based on information held in a user security table. The calling form passes the form name (me.name) as a parameter. This works fine on its own.
I have two forms A and B. If I open both forms, I have no issue. However if B is a subfom of A, when A opens, the load event of form B (acting as a subform now) crashes because it doesn't recognise the me.name parameter.
Any ideas?