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 / Queries / October 2007

Tip: Looking for answers? Try searching our database.

Any idea why...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michelle - 31 Oct 2007 13:19 GMT
I have the following SQL code for a query that joins 3 tables so I could
enter data.

SELECT tblInmGangData.DOCNumber, inmtinfo.IN_NAME, tblInmGangData.NName,
tblInmGangData.Rank, inmtinfo.IN_OFFENSE, inmtinfo.IN_CMTCNTY,
inmtinfo.IN_SNTCLAS, inmtinfo.IN_EFFDATE, inmtinfo.IN_MINDATE,
inmtinfo.IN_MAXDATE, inmtinfo.IN_MINSNT, inmtinfo.IN_MAXSNT, inmtinfo.IN_WA1,
tblInmGangData.STGMisconducts, tblInmGangData.Comments, tblInmGangData.Photo,
tblInmGangData.Tattoo1, tblInmGangData.Tattoo2, tblInmGangData.Tattoo3,
tblInmGangData.Files, tblGang.GangName, [IN_BLDING] & "-" & [IN_SECTION] &
"-" & [IN_CELLDRM] & "-" & [IN_BEDNUM] AS BSCB, tblInmGangData.Inactive
FROM tblGang RIGHT JOIN (tblInmGangData INNER JOIN inmtinfo ON
tblInmGangData.DOCNumber = inmtinfo.IN_INMNUM) ON tblGang.GangID =
tblInmGangData.Affilation
WHERE (((tblGang.GangName)=[Enter Affiliation]) AND
((tblInmGangData.Inactive)=False));

It worked till I found out that an Inmate could be a member of more than one
gang so I had to change the primary key in the tblInmGangData from just
DOCNuber to DOCNumber and Affilation now I can not edit any of the data in my
query.

I posted this yesterday on Programming but got no help.
Any ideas would be helpful.
Duane Hookom - 31 Oct 2007 15:27 GMT
I would break out some of the tables and use subforms. I rarely bind a form
to more than a single table. Each related table can be easily edited in a
subform.
Signature

Duane Hookom
Microsoft Access MVP

> I have the following SQL code for a query that joins 3 tables so I could
> enter data.
[quoted text clipped - 20 lines]
> I posted this yesterday on Programming but got no help.
> Any ideas would be helpful.
 
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.