Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting record in subform!!!!

Status
Not open for further replies.

legs00

Programmer
Oct 17, 2001
36
CA
Hi

I have a form that contains a subform, which displays rows of records according to criterias chosen. Now this subform has a select statement in its recordsource.

By default the cursor goes to the first record in that recordset. I must choose the record I would like to delete and press the delete button. The problem I am having is that I would like to reposition the cursor to the record before(previous) to the one that has been deleted.

I tried inserting various codes, like Docmd.gotorecord. It worked but I had to open my subform and everything was done to that subform alone and not to the main form (where the subform is).

Can anyone help me figure this out!!!
If there is no way of doing this, please let me know!!!!!!

Legs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top