Selasa, 02 Juni 2015

RE: [MS_AccessPros] unmatched query help

 

Oh I wasn't going to use that as updateable at that point.  I was going to get the ID and inner join it to the table that was updateable.

 

But…  thanks for the updateable query string anyway.  That would have actually saved a bit.  IF I had to continue on with it but it appears that I didn't have to do this anyway – at least this point in time.

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Tuesday, June 02, 2015 10:57 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] unmatched query help

 



Liz-

 

Nope.  That's a not updatable query.

 

SELECT NB.ID

FROM [NogalesCNBacklog - all] AS NB

WHERE NB.Drawing NOT IN

(SELECT PartNum FROM NogalesParts)

AND SolutionItem NOT IN

(SELECT PartNum FROM NogalesParts)

 

 

John Viescas, Author

Microsoft Access 2010 Inside Out

Microsoft Access 2007 Inside Out

Microsoft Access 2003 Inside Out

Building Microsoft Access Applications 

SQL Queries for Mere Mortals 

(Paris, France)

 

 

 

On Jun 2, 2015, at 5:04 PM, Liz Ravenwood liz_ravenwood@beaerospace.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

 

Pros (John V?) – query pro!  J

 

I need to get alter a field on a table based on if 2 different fields aren't on another table.

 

So, left joined table pn1 won't have a match on the parts table pn and neither will the left joined table pn2 have a match on the parts table pn.

 

Here's the sql to get the dataset that I will do the update on:

 

SELECT [NogalesCNCBacklog - all].ID

FROM ([NogalesCNCBacklog - all] LEFT JOIN NogalesParts ON [NogalesCNCBacklog - all].Drawing = NogalesParts.PartNum) LEFT JOIN NogalesParts AS NogalesParts_1 ON [NogalesCNCBacklog - all].SolutionItem = NogalesParts_1.PartNum;

 

Will it work?

 

Respectfully,

Liz Ravenwood

Programmer / Analyst

B/E Aerospace | Super First Class Environments

 

1851 S Pantano Road | Tucson, Arizona 85710

Office +1.520.239.4808 | Internal 814-4808

beaerospace.com

Passion to Innovate. Power to Deliver

 



This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

 






This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

__._,_.___

Posted by: Liz Ravenwood <Liz_Ravenwood@beaerospace.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (4)

.

__,_._,___

Tidak ada komentar:

Posting Komentar