Results 1 to 5 of 5
  1. #1
    jmitchelldueck is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    51

    New Records do not Appear on Edit Record Form

    Hi,



    I have a table in my db called ContractsT, which has a query linked to it called ContractNameSearchQ to search for contracts by a person's name. I have based a continuous form on the query to edit the contracts (EditContractsF).

    My issue is that upon entering a new record in to the table, it does not always appear on the query (and thus the form). It seems to rely on entries in two specific fields to consider it for the query.

    Here is the SQL code for the query:

    Code:
    SELECT PhysicianT.fullName, PhysicianT.physID, ContractsT.contractID, ContractsT.positions, ContractsT.contractStart, ContractsT.contractEnd, REFTypesT.contractType, ContractsT.notes, ContractsT.renewalCompleted, ContractsT.type, ContractsT.extraPos, ContractsT.posEnd1, ContractsT.posEnd2, ContractsT.posEnd3FROM REFTypesT INNER JOIN (PhysicianT INNER JOIN ContractsT ON PhysicianT.physID = ContractsT.fullName) ON REFTypesT.contractTypeID = ContractsT.type
    WHERE (((PhysicianT.physID) Like [forms]![EditContractsF]![nameSelector] & "*"))
    ORDER BY PhysicianT.fullName;
    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,643
    Your joins require entries in the related tables; try editing the joins and choosing the appropriate option.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Normally a form can do data entry/edit for only 1 table. Which table is this form intended for data entry/edit? Why are you including additional tables?

    As Paul notes. INNER JOIN requires related records in both sides for data to show.
    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.

  4. #4
    jmitchelldueck is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    51
    Will probably revisit this issue but I found a bypass, I'm going to make the two fields that need to have an entry required in the initial entry form so they always have a value.

    I have two tables on the form because the one field, type, is a combo box that references another table for its values.
    Attached Thumbnails Attached Thumbnails editContractDesign.jpg  

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Just because a combobox draws items from a table is not enough reason to include that table in RecordSource. However, if you do include then do not use INNER JOIN. Textboxes bound to the lookup table fields must not be editable.
    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: 21
    Last Post: 08-05-2013, 06:23 AM
  2. form based on query - cant edit records
    By tweety in forum Forms
    Replies: 7
    Last Post: 04-10-2013, 03:42 PM
  3. Replies: 1
    Last Post: 01-03-2013, 11:19 PM
  4. Find A Record on a Certain form to edit
    By donnan33 in forum Access
    Replies: 1
    Last Post: 02-29-2012, 02:08 PM
  5. Form not letting me edit records
    By bbylls in forum Forms
    Replies: 3
    Last Post: 12-16-2009, 09:30 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