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 / July 2006

Tip: Looking for answers? Try searching our database.

Update value to null

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex - 26 Jul 2006 23:46 GMT
I have the following Update query, which works fine.  However, if there is no
longer an inner join record in the ExcelARefParts table, how can I update the
fields in the AllNewParts table to null?  Thanks.

UPDATE AllNewParts INNER JOIN ExcelARefParts1 ON (AllNewParts.[Model#] =
ExcelARefParts1.[Model#]) AND (AllNewParts.RefPart = ExcelARefParts1.[Part#])
AND (AllNewParts.RefPartNHL = ExcelARefParts1.[AS Part#]) SET
AllNewParts.RefPartEAU = [ExcelARefParts1].[Annual Qty],
AllNewParts.RefPartStatus = [ExcelARefParts1].[S],
AllNewParts.RefPartMatlCode = [ExcelARefParts1].[Matl Code],
AllNewParts.RefPartWtlb = [ExcelARefParts1].[FIN WTLB],
AllNewParts.RefPartQty = [ExcelARefParts1].[Qty], AllNewParts.RefPartMatlCost
= [ExcelARefParts1].[Matl], AllNewParts.RefPartVarCost =
[ExcelARefParts1].[Variable], AllNewParts.RefPartNPCCost =
[ExcelARefParts1].[NPC]
WHERE (((AllNewParts.[Model#])=[forms]![Export_Ref_Parts]![ModelToImport]));
Michel Walsh - 27 Jul 2006 00:29 GMT
Hi,

At first glance, changing INNER JOIN to LEFT JOIN would do.

Hoping it may help,
Vanderghast, Access MVP

>I have the following Update query, which works fine.  However, if there is
>no
[quoted text clipped - 17 lines]
> WHERE
> (((AllNewParts.[Model#])=[forms]![Export_Ref_Parts]![ModelToImport]));
 
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.