Results 1 to 4 of 4
  1. #1
    journeyman is offline Novice
    Windows 11 Access 2016
    Join Date
    Dec 2022
    Posts
    26

    Query that allows update on M-to-M table

    Hi All.

    I have a table with 2 fields (IO, F1)



    I have a second table with 4 fields (ID, F1, F2, F3)

    T1 (F1) - contains unique records.
    The data in F1 ranges from 1-10
    T1 is filtered to a value (or several)

    T2 (Both F1 and F2) contains duplicate string type fields.
    The data in F2 ranges from 1 to 10.

    T2 (F3 is a Yes/No field)

    With a basic select query I can see all my filtered records

    I need a query that displays all the filtered records and allows for me to modify the Boolean F3 field.

    Sounds simple, but my every attempt has ended in tears. I cannot modify the F3 Field. Just why?

    Code:
    Select Tbl_Temp2.*
    From Tbl_Temp INNER JOIN Tbl_Temp2 ON Tbl_Temp.f1 = Tbl_Temp2.F1
    Surely there has to be a simple way to allow for me to select a stupid Boolean field.

    Any help is appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,082
    Is this a RecordSource for a form? Are you trying to manually edit field? Why are you using a JOIN query to edit T2?

    Should still be able to edit F3.

    There is no filter applied.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    3,890
    See if changing the recordset type of the query to dynaset (Inconsistent Updates) helps. Open the query in design view and go to properties:
    Click image for larger version. 

Name:	Screenshot 2023-03-08 224505.png 
Views:	17 
Size:	67.2 KB 
ID:	49851
    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #4
    journeyman is offline Novice
    Windows 11 Access 2016
    Join Date
    Dec 2022
    Posts
    26
    Hi all,

    The advice to change to inconsistent updates set me on the right path. thank for understanding the question and responding appropriately.

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

Similar Threads

  1. Replies: 10
    Last Post: 07-14-2021, 02:08 PM
  2. Update Query with Criteria in update to table
    By tanner.morgan in forum Queries
    Replies: 3
    Last Post: 08-28-2018, 07:56 AM
  3. Replies: 3
    Last Post: 06-01-2017, 06:57 AM
  4. Replies: 1
    Last Post: 05-17-2013, 12:53 PM
  5. Replies: 1
    Last Post: 02-08-2012, 04:50 PM

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