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!

Delete records in subforms

Status
Not open for further replies.

BillyL

IS-IT--Management
Jul 18, 2000
91
US
I have two subforms (sfrmCalls and sfrmNotes) in a form (frmCallLog) both subforms are from a single table. The only way I could get them to synchronize and work was to add the CallID field to the sfrmCalls form (Visible=false) and make it the master link for the sfrmNotes.
Here is the subform setup:

sfrmCalls: Child=ContactID; Master=ContactID
sfrmNotes: Child=CallID; Master=forms!frmCallLog!sfrmCalls!CallID

This seems to work satisfactory but if I select and delete a record from sfrmCalls, then "#deleted" appears in the sfrmNotes form and Access stops responding.

Any help with this would be greatly appreciated.
 
Hi,

Not sure, but try Addnew after the delete, or Refresh.
(Are you 'Update' ing after the delete?)

It needs to point to a new 'null' record - ready for editing.

Regards,

Darrylle "Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top