Solved

Update table

Posted on 2013-10-28
2
218 Views
Last Modified: 2013-10-28
Hello,

I'm learning Access SQL and need to select all records where Scrap and RTV are null so I can find those records.

Then I need to perform an update statement to set the Scrap = true if both are null


My first is the select statement so I can see where both are null.

SELECT [DMR Tracking].SCRAP, [DMR Tracking].RTV
FROM [DMR Tracking]
Where ([DMR Tracking].SCRAP and  [DMR Tracking].RTV) = false

Which does not work.

How would I do the select and the update statements for this scenario.

I know this is real simple. I'm still in the learning syntax.
0
Comment
Question by:gogetsome
2 Comments
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 39606505
UPDATE [DMR Tracking]
SET [DMR Tracking].SCRAP = True
WHERE IsNull([DMR Tracking].SCRAP) AND IsNull([DMR Tracking].RTV)
0
 

Author Closing Comment

by:gogetsome
ID: 39606569
Thank you! I see said the blind man.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now