Subform Datasheet View

bunji

Registered User.
Local time
Today, 22:58
Joined
Apr 26, 2005
Messages
124
I have a subform that is in databsheet view. When the user logs in to the db it sets the global variable with the group level they have.

I would like a column to be hidden for a certain group of users and have tried the following.

On the subform opening event i have

if vlevel = "engineer" then

me.Hours.columnhidden = True

Else

me.Hours.columnhidden = False

End If

And i have done the same on the Main Form open event identifying the subform by Form!Subform![Hours].columnhidden = True

But neither worked.

Can any suggest something.
 
I tried that and it also did not work.
 
I tried that and it also did not work.
 

Users who are viewing this thread

Back
Top Bottom