Hi,
I have mulit value field with the following values
field name: DivACO
values:
John Smith
Bob Clarke
Jane West
In a document i have a action button called remove which has some script which calls up a dialog box (subform) and then asks the user what value from that field they want to delete.so on the dialog box their will be field which is of typr listbox and editable which will have the values:
John Smith
Bob Clarke
Jane West
the user selects a value to remove (only one can be selected) and then clicks on OK on the dialog box and that value should be removed from the document in the field DivACO..
the way i am trying to make this work is by using the following script in the action button
b = currentdoc.DivACO
Call session.SetEnvironmentVar( "ENames", b & "/WestMidlands/NPS" )
Call DialogList("StaffMovDlg2", "Remove ACO Staff Member")
If Response1 = False Then
uidoc.EditMode = False
End
End If
This script is not working because the debugger does not like me using b = currentdoc.DivACO but it does like b = currentdoc.DivACO(0), which is not helping me as that will only return the first value - John Smith..i want all of them...how do i do this using the environment variables function in script and what should the field in the dialog box be set to ie.of what type listbox and what should its formula be in order for the field in the dialog list to show all the values in the list
Any help greatly appreciated
Thanks

Environment & Field (Nadeem Shaikh 8.Jun.04)
. . 