PC Review


Reply
Thread Tools Rate Thread

Access 2007 expression in a table

 
 
RChamp1969
Guest
Posts: n/a
 
      5th Apr 2010
I am struggling with Access 2007, trying to teach myself how to build an
expression in a table. My table is a listing of customers, names, address,
the last field I want to put in is "Preferred_Customer", I want this to look
at the "YTD_Orders" and see if it is >= 10000, if so then Yes if not No.
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      5th Apr 2010
On Sun, 4 Apr 2010 19:36:01 -0700, RChamp1969
<(E-Mail Removed)> wrote:

>I am struggling with Access 2007, trying to teach myself how to build an
>expression in a table. My table is a listing of customers, names, address,
>the last field I want to put in is "Preferred_Customer", I want this to look
>at the "YTD_Orders" and see if it is >= 10000, if so then Yes if not No.


Storing derived data such as this in your table accomplishes
three things: it wastes disk space; it wastes time (almost
any calculation will be MUCH faster than a disk fetch); and
most importantly, it risks data corruption. If one of the
underlying fields is subsequently edited, you will have data
in your table WHICH IS WRONG, and no automatic way to detect
that fact. For instance, you could have a customer with 9950 YTD
orders; if they order 200 more, their status should change.... but
if the table is already populated it won't.

Just use a *QUERY* based on the table, to count or sum values in YTD_Orders,
and dynamically assign the value accordingly:

IIF(YTD_Orders >= 10000, "Preferred Customer", Null")
--

John W. Vinson [MVP]
 
Reply With Quote
 
شوووووق
Guest
Posts: n/a
 
      5th Apr 2010


‏‏كتب "RChamp1969" <(E-Mail Removed)> في رسالة
news:33CBBB87-07FA-47D3-814B-(E-Mail Removed)...
> I am struggling with Access 2007, trying to teach myself how to build an
> expression in a table. My table is a listing of customers, names,
> address,
> the last field I want to put in is "Preferred_Customer", I want this to
> look
> at the "YTD_Orders" and see if it is >= 10000, if so then Yes if not No.


 
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
importing table contents from Word 2007 into Access 2007 andgenerating queries, reports using Access 2007 g_1 Microsoft Word Document Management 3 12th Nov 2009 06:58 AM
Expression in Access table =?Utf-8?B?QmFyYiBFLg==?= Microsoft Access Database Table Design 3 17th Jul 2007 09:56 PM
Access 2007 LIKE Expression kpick4 Microsoft Access Queries 4 29th May 2007 06:00 PM
Access 2007 LIKE Expression kpick4 Microsoft Access Queries 1 29th May 2007 05:35 PM
Access 2007 LIKE Expression kpick4 Microsoft Access Queries 0 29th May 2007 04:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:51 PM.