473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Updatable query - Many to Many

CC
Dear all,

Following Many-to-Many table structure is part of my database

-----------------------------------
TbGeneral (dossier information)
PK: dsr_id

TbDossierSample
PK: dsr_sample_id
FK: dsr_id
FK: sample_id

TbCRL (sample information)
PK: sample_id
-----------------------------------

+++ When the Dossier form is open (linked to TbGeneral), a button
exists that should take the user to the related samples (on the sample
form).

Following statement achieves this:

"SELECT * FROM TbCRL, TbDossierSample WHERE
TbCRL.sample_id=TbDossierSample.sample_id AND TbDossierSample.dsr_id="
& Dossier

(Dossier dsr_id: Form_Dossier.Text142)
But then the fields are not updatable.

+++ When I use following SQL statement
SELECT TbCRL.* FROM TbCRL INNER JOIN TbDossierSample ON
TbDossierSample.sample_id = TbCRL.sample_id WHERE
TbDossierSample.dsr_id="& Dossier

It return the correct results when testing as a query object, but not
when implemented with the "RecordSource" command.

I've read it should be possible to retrieve updatable fields with the
above mentioned table structure IF the recordset type for the second
form is set to "Dynaset (Inconsistent Updates)", and the query is build
with JOINS...

However I cannot do so...

ANY advice is welcome!

Thx in advance,

Seppe

Jan 10 '06 #1
0 1392

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mario Zoratti | last post by:
Hello, everybody, Please be so kind to explain how it is possible to make a query pass through in Access 97 vs SQL server updatable. The query is "SELECT CDC. * FROM CDC": it is very simple and...
2
by: Johnny M | last post by:
I have been using Access since office 4.3. I have just upgraded to Office 2003 and am having issues with creating updatable queries. If I link one table to a selection query based on the same...
14
by: Martin Lacoste | last post by:
Access 2000 Trying even the most basic queries - select queries joining (inner join) two tables - and the results are not updatable, and I can't tell why they aren't. All permissions are on,...
2
by: Enterprise | last post by:
Hi, Here is my code for the Union query "Table union Table union Table ;" The tables are actually queries themselves. I made a form for the query, but when I try to update the...
4
by: adolph | last post by:
I created 2 tables, each with an autonumber primary key. Fields are: ID (autonumber Primary key) Number (single) Color (Text) FName (text)in one table and LName (text)in the other What I'm...
3
by: jallegue | last post by:
I am working with MS-Access 2002. The two tables that I am working with are: dbo_IDX_FRS_account_bal_by_month ==> this is a linked table to SQL == local table The query that is executed is...
10
by: anniebai | last post by:
Can someone help me with this query, which gives the error message "operation must use an updatable query"? Thanks a lot. UPDATE publications set publications.pmcid = (select fname.pmcid from fname...
8
geolemon
by: geolemon | last post by:
I'm trying to perform an update, and I can't avoid this error - I've tried this query what must be 5 different very fundamentally different ways now. Arg. I used to be a DBA in large DB2 and SQL...
1
by: beceri | last post by:
Hi ; I use too mix query ( four relationship and main and child tables :) ) so that of couse my query is not updatable I agree this ! :( but I want to different thing ; when form is open my mix...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.