J
Jonathan Parminter
Hi, I'm using vb script behind an appointment item. The
intention is to check that the user of the form is a
member of a particular group. The code triggers an error
for both the .MemberCount and .Member properties.
What do I need to change in order for the following scrip
to run?
**** code start ****
set objDistListItem = objAddresseEntries.Item("Is
Group")
if fOK then
fOK=false
intIndex = 1
do until intindex >
objDistListItem.MemberCount _
or fOK = true
set objMember =
objDistListItem.Member(intIndex)
msgbox "Group Member: " &
objMember.Name
if lcase(objMember.Name)= _
lcase
(objNS.CurrentUser.Name) then
fOK=TRUE
end if
intIndex = intIndex + 1
loop
end if
**** code end ****
Any ideas or recommendations appreciated
Thanks
Jonathan
intention is to check that the user of the form is a
member of a particular group. The code triggers an error
for both the .MemberCount and .Member properties.
What do I need to change in order for the following scrip
to run?
**** code start ****
set objDistListItem = objAddresseEntries.Item("Is
Group")
if fOK then
fOK=false
intIndex = 1
do until intindex >
objDistListItem.MemberCount _
or fOK = true
set objMember =
objDistListItem.Member(intIndex)
msgbox "Group Member: " &
objMember.Name
if lcase(objMember.Name)= _
lcase
(objNS.CurrentUser.Name) then
fOK=TRUE
end if
intIndex = intIndex + 1
loop
end if
**** code end ****
Any ideas or recommendations appreciated
Thanks
Jonathan