Delete selected document from view

Hi

I need a bit of help (not really a developer so be gentle):

I have a two frame framset, in the top frame (frmTop)I have a simple form (form: AddPerson)that lets me add a new document based on a user (field: usrName)selected from the directory and a group ~(there are only 4 groups) from a pick list (field: usrGroup). The bottom frame (frmView) contains a view (view: UserList) that is refreshed when a new document is added.

I have two requirements:

  1. I can select (tick) a document in the view frame but I need a button in the top form frame that will delete the document that is ticked in the lower view frame.

  2. I have a second database that I want to be able to populate a combobox on a form with the names for one of the groups in the above database. I.E. I can have one combobox for each of the groups that will only show the members of that specific group.

I hope that makes sense and is not too much

thanks in advance

Martin

Subject: RE: Deleting selecting document

There are two ways to approach this… the first is how you are doing it… the second is to have the view embedded into the form and just have a delete button on the view… of course, I am not following why you need the button on the form and not on the view… please explain more…

Subject: more info

This was so that all the user buttons are in one place. I never thought about embedding the view in the form, not sure how to do this (and would it still let me select more than one document to delete) so ended up with it in a frame.

Subject: RE: Yes, embedded view would allow you to delete more than one document

Subject: delete code

OK so I now have an embedded view in my form and can select a document in this so what code do I need on my delete button to delete the currently selected document in the embedded view. As I can’t figure out what it should be.