Re: How to write an IF statement in VBA

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Rose (anonymous_at_discussions.microsoft.com)
Date: 05/24/04


Date: Mon, 24 May 2004 06:57:44 -0700

I might have not been clear earlier. The companies *are*
the customers...I should have used the same term
throughout. They will only show up once in the Company table.

I 'port the company data from MAS (an accounting system)
about once a week. I have to run a query to prepare my data
for the rest of my queries, and it made sense to add
GroupName at this point, since I don't really need it in my
table and I don't add companies in manually. Furthermore, I
have hundreds of customers, but these 15 companies need to
be treated differently than the rest. Several people's
suggestion of a Select Case was what I needed.

>-----Original Message-----
>Hi Rose,
>
>I think that what Tim is referring to is that it appears
>that you are creating this field in a table where each
>company appears numerous times (otherwise why automate
>it). Tim is suggesting that if this is the case it is
>not the preferred way of handling data in a normalized
>database (to add another field that is a constant based
>on the company name).
>
>Instead, you would normally have a company lookup table
>that would list various data about the company, such as
>the name and the group. Then, the customer table would
>relate to the company just by storing the company ID.
>Queries would then be used to relate the customer data
>and any of the company data (including the group) from
>the lookup table.
>
>HTH, Ted Allen
>
>>-----Original Message-----
>>I *am* creating the new field GroupName. It's populating
>it
>>that requires a If statement, or similar.
>>.
>>
>.
>



Relevant Pages

  • Re: PLEASE HELP --------> how can I show addresses when....
    ... I just noticed "Gary" gave me another suggestion as well which I ... "Kuay Tim" wrote: ... I sent an email to a customer who ... Is there a way so that when someone replies to my ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Rick Hudson, Thump etc
    ... But John Cartmell believes he wouldn't be stupid enough ... the suggestion - except in pretence. ... customer of the company? ...
    (comp.sys.acorn.apps)
  • Re: Please add an INTERPOLATE function. For vector or array data.
    ... from every customer, XL is flexible enough to allow one to add new ... > This post is a suggestion for Microsoft, ... To vote for this suggestion, ... > click "I Agree" in the message pane. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Restaurant reviewer busted
    ... selling from the service report as I don't think it has anything to ... suggestive selling is called "up selling" ... As a customer I want to get there as fast as possible too... ... you might like to try this" sort of suggestion. ...
    (rec.food.cooking)
  • Re: Responsibility
    ... > Lots of good points and avenues to persue from Tim. ... it up to customer ignorance, ... > tint to come close to the proof to keep it 4 color. ... Indeed, you're lucky. ...
    (comp.publish.prepress)