Results 1 to 4 of 4
  1. #1
    mmaule is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    May 2014
    Posts
    38

    Move an editing form to display a selected field value that is on the subform

    I need to move an editing form, that has a subform, to display a selected field value that is on the subform.
    I have two tables:
    StatusMnemUnit with fields:
    SMU_ID
    System
    MnemFileName


    MnemonicUnit with fields:
    SMU_ID
    MU_ID
    MnemonicName
    etc.
    The Relationship is the SMU_IDs.
    The parent form displays the StatusMnemUnit info and the subform displays the MnemonicUnit information.
    I have a form, based on a query, that allows me to select a specific MnemonicName and edit the MnemonicUnit information, but I can't use it to delete a specific MnemonicUnit record or add a MnemonicUnit.
    How can I position the form to a specific MnemonicUnit record so that I can edit or delete the record?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Why can't you use it to delete or add record?

    If by 'position the form' you mean find a record, options are to filter the form or go to the record.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    mmaule is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    May 2014
    Posts
    38
    I have a form, based on a query, that allows me to select a specific MnemonicName and edit the MnemonicUnit information, but I can't use it to delete a specific MnemonicUnit record or add a MnemonicUnit.
    Why can't you use it to delete or add record?
    The query combines the StatusMnemUnit and MnemonicUnit information. with this for I have no problem displaying a selected MnemonicUnit record, but Deleting it, would delete the StatusMnemUnit record as well and I don't want that. Likewise, Adding a MnemonicUnit record woule add a StatusMnemUnit record as well and I don't want that either.
    With the form I am trying to use for Adding and Deleting MnemonicUnit records, the parent form displays the StatusMnemUnit info and the subform displays the MnemonicUnit information, I can add and delete MnemonicUnit records fine, but there are several hundred MnemonicUnit records per StatusMnemUnit record, so trying to use the navigation controls is too slow. I am trying to select a specific MnemonicUnit record, from a combobox, by MnemonicName, and display it associated StatusMnemUnit info and MnemonicUnit information, so I can delete the MnemonicUnit record. When the form redisplays, it displays the prior StatusMnemUnit record and its first MnemonicUnit record, not my selection.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Not really understanding issue. If you are using form/subform, why is there a query that joins tables used as form RecordSource? I can understand enforcing relational integrity, which is what you appear to have set up. The point is you can delete the records but related records would also be deleted. This is fine as long as you understand this. If you want to delete then delete, however, deleting records should be a rare occurrence.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 14
    Last Post: 11-04-2015, 09:44 AM
  2. Replies: 12
    Last Post: 11-07-2014, 01:45 PM
  3. Problem editing Memo field in a subform
    By hertfordkc in forum Forms
    Replies: 2
    Last Post: 11-04-2014, 04:12 PM
  4. Replies: 3
    Last Post: 01-17-2012, 01:04 PM
  5. Replies: 3
    Last Post: 02-01-2011, 09:47 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