Results 1 to 2 of 2
  1. #1
    skyrise is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Feb 2009
    Posts
    22

    Two Delete Record Problems

    I have a database where I am trying to resolve two issues with deleting records.



    The first issue is that I can’t delete a row in the subforms. The shortcut menu does not enable the “cut” option. Selecting/Highlighting the row and pressing Delete on the keyboard doesn’t work. I have to go to the table for the subform in order to delete the row. I don’t remember experienced this problem before, and don’t know the cause or how to change it.

    The second solution I am seeking is to be able to use the Delete Record button to delete the main form record and the matching subform records that have the same record ID number (up to 15 subforms with multiple rows). The wizard-generated button builds a macro that deletes the main form record but not the subform records. I’m trying to find programming code that might delete everything at one time.

  2. #2
    CraigDolphin is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Apr 2009
    Location
    Custer, WA, USA
    Posts
    125
    Couple of things to note:

    1. You haven't defined any relationships between your tables that would allow you take advantage of cascade delete (if you delete a record in the parent table, the child related records in the child table are also deleted). It also makes it hard to envisage what your data represents.

    2. For some reason I seldom use datasheet views of table data in forms. When I change the subform view to continuous form, it is no problem to delete the subform records by selecting the row selector and hitting delete on the keyboard. But I have trouble doing this in datasheet view. Honestly I'm just not sure why this would be.

    If you can't track the source of the problem then you could sidestep the issue by using continuous form view for your subforms.

    HTH

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need to delete special characters
    By tlrutledge in forum Queries
    Replies: 1
    Last Post: 08-23-2013, 03:10 AM
  2. Replies: 0
    Last Post: 04-13-2009, 04:02 AM
  3. Add/Delete Button
    By ocemy in forum Forms
    Replies: 1
    Last Post: 03-29-2009, 08:08 PM
  4. Delete a record
    By f.crocco in forum Programming
    Replies: 1
    Last Post: 10-08-2007, 07:28 AM
  5. Could not delete from specified tables.
    By bullwinkle55423 in forum Queries
    Replies: 0
    Last Post: 08-31-2006, 08:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums