PC Review


Reply
Thread Tools Rate Thread

create an update query

 
 
kim
Guest
Posts: n/a
 
      12th Apr 2010
How do I update the disount field for all customers who do not already have a
discount?
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      12th Apr 2010
On Sun, 11 Apr 2010 17:15:01 -0700, kim <(E-Mail Removed)> wrote:

>How do I update the disount field for all customers who do not already have a
>discount?


You can see your table structure - we cannot.

Guessing that there is a field in the table Customers named Discount, you can
create an update query with a criterion

Is Null

on the discount field to find all records with blank (empty) discounts. If the
discount defaults to 0 you can use a criteron

=0

Post back if I'm misguessing your table structure!
--

John W. Vinson [MVP]
 
Reply With Quote
 
John Spencer
Guest
Posts: n/a
 
      12th Apr 2010
Update [SomeTable]
SET Discount = .1
WHERE Discount is Null Or Discount = 0

In query design view
== Add your table
== Add the discount field
== Set the criteria to Is Null or <> 0
== Select Query: UPdate from the menu
== In the UPDATE TO "cell" under Discount field enter
.1 (for 10 percent discount)

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

kim wrote:
> How do I update the disount field for all customers who do not already have a
> discount?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Update Query Dave Microsoft Access Queries 4 7th Jul 2008 07:18 AM
Re: how to create an update query? Ken Snell \(MVP\) Microsoft Access Queries 0 26th Dec 2006 08:42 PM
Update query or create new table query or ?? =?Utf-8?B?SldDcm9zYnk=?= Microsoft Access Queries 4 18th Jul 2006 05:13 PM
How can I create an update query that will create mixed case? =?Utf-8?B?TWljaGVsbGUgVy4=?= Microsoft Access Queries 2 12th May 2006 03:41 PM
How do you create an update query? =?Utf-8?B?Q2hl?= Microsoft Access Getting Started 1 30th Mar 2006 06:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:35 PM.