C
chris
A few weeks ago someone (actually TC) helped me with a db where I
wanted to use user level security permissions in a form with subforms
on different tabs. He suggested me to test if a user can set the
sourceobject property of a subform. If he cannot (because he doesn't
have permissions on the subform) the corresponding tab is disabled.
(original thread: http://groups.google.be/groups?hl=n...22&meta=group%3Dmicrosoft.public.access.forms)
In code, I do something like
subForm1.SourceObject = subForm1.Tag
If Err.Number <> 0 Then
On Error GoTo 0
tabMain.Pages(4).Visible = False
End If
This works fine for the first subform. But when I repeat the code for
a second one, I get error 2614 "You dont have permission to insert
this form into another form". I don't think it has anything to do with
the particular subform because even if I invert the order of the 2
code snippets, it's always the second snippet that raises the error.
Does anyone have an idea why I'm getting this error?
tia,
Chris
wanted to use user level security permissions in a form with subforms
on different tabs. He suggested me to test if a user can set the
sourceobject property of a subform. If he cannot (because he doesn't
have permissions on the subform) the corresponding tab is disabled.
(original thread: http://groups.google.be/groups?hl=n...22&meta=group%3Dmicrosoft.public.access.forms)
In code, I do something like
subForm1.SourceObject = subForm1.Tag
If Err.Number <> 0 Then
On Error GoTo 0
tabMain.Pages(4).Visible = False
End If
This works fine for the first subform. But when I repeat the code for
a second one, I get error 2614 "You dont have permission to insert
this form into another form". I don't think it has anything to do with
the particular subform because even if I invert the order of the 2
code snippets, it's always the second snippet that raises the error.
Does anyone have an idea why I'm getting this error?
tia,
Chris