Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Query won't work when I add 3rd table!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tvh - 28 Dec 2004 23:35 GMT
Access 2003
When I add a third table to the Query Builder, the query and associated form
won't allow edits, additions or deletions.  Why?  Here's the SQL Statement if
it helps anyone.  Thank you in advance!!

SELECT tblClientInformation.tblU2ClientID,
tblClientInformation.citblCompanyName, tblClientInformation.citblContactName,
tblClientInformation.citblContactTitle, tblClientInformation.citblAddress,
tblClientInformation.citblCity, tblClientInformation.citblState,
tblClientInformation.citblZipCode, tblClientInformation.citblWorkPhone,
tblClientInformation.citblExt, tblClientInformation.citblCellPhone,
tblClientInformation.citblFaxNumber, tblClientInformation.citblEmail,
tblWorkOrders.[wotblWorkOrder#], tblWorkOrders.wotblCompanyName,
tblWorkOrders.wotblDate, tblWorkOrders.wotblTime, tblWorkOrders.[wotblJob#],
tblWorkOrders.[wotblPO#], tblWorkOrders.wotblJobDescription,
tblWorkOrders.wotblLocation, tblWorkOrders.wotblServicesRequested,
tblWorkOrders.wotblAdditionalInformation,
tblWorkOrders.wotblInitiallyAssignedTo
FROM (tblClientInformation INNER JOIN tblWorkOrders ON
tblClientInformation.tblU2ClientID = tblWorkOrders.wotblCompanyName) INNER
JOIN tblClientSiteContacts ON tblClientInformation.citblContactName =
tblClientSiteContacts.tblSiteContactName
ORDER BY tblWorkOrders.[wotblWorkOrder#];
Duane Hookom - 29 Dec 2004 00:47 GMT
I expect that one of the joins doesn't reference a primary key field.

Signature

Duane Hookom
MS Access MVP
--

> Access 2003
> When I add a third table to the Query Builder, the query and associated
[quoted text clipped - 23 lines]
> tblClientSiteContacts.tblSiteContactName
> ORDER BY tblWorkOrders.[wotblWorkOrder#];
Chris - 30 Dec 2004 17:22 GMT
I was under the impression that it couldn't be done.  When I tried, it I
kept getting the message "Recordset is not updateable"
> I expect that one of the joins doesn't reference a primary key field.
>
[quoted text clipped - 30 lines]
> > tblClientSiteContacts.tblSiteContactName
> > ORDER BY tblWorkOrders.[wotblWorkOrder#];
Duane Hookom - 30 Dec 2004 18:18 GMT
You should be able to create an updateable query with 3 or more tables. For
instance, open Northwind and use the sql:
SELECT Orders.*, [Order Details].*, Products.*
FROM Products INNER JOIN (Orders INNER JOIN [Order Details] ON
Orders.OrderID = [Order Details].OrderID) ON Products.ProductID = [Order
Details].ProductID;

The results are updateable.

Signature

Duane Hookom
MS Access MVP

>I was under the impression that it couldn't be done.  When I tried, it I
> kept getting the message "Recordset is not updateable"
[quoted text clipped - 35 lines]
>> > tblClientSiteContacts.tblSiteContactName
>> > ORDER BY tblWorkOrders.[wotblWorkOrder#];
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.