PC Review


Reply
Thread Tools Rate Thread

criteria evaluation of field values

 
 
=?Utf-8?B?QWxsZW4=?=
Guest
Posts: n/a
 
      3rd Mar 2006
I have a database with compensation data in it which is divided by row into
summary data for a specific cut of data to a position. For example I have a
job of Accountant and summary data for this position split out by region on
one, revenue size of employer on another row, or located in a city or not on
another row and total of all splits on another row.

In my query I am trying to write an equation that will say if I have x
region and x employer size and x city then use them all. If not then only
use total split.

Is this possible?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2hhcmtieXRl?=
Guest
Posts: n/a
 
      3rd Mar 2006
Yes.

If [Region] = "x" and [EmployerSize] = "x" [City] = "x" Then
*Do this*
Else
*Do this*
End If


Sharkbyte




"Allen" wrote:

> I have a database with compensation data in it which is divided by row into
> summary data for a specific cut of data to a position. For example I have a
> job of Accountant and summary data for this position split out by region on
> one, revenue size of employer on another row, or located in a city or not on
> another row and total of all splits on another row.
>
> In my query I am trying to write an equation that will say if I have x
> region and x employer size and x city then use them all. If not then only
> use total split.
>
> Is this possible?

 
Reply With Quote
 
=?Utf-8?B?U2hhcmtieXRl?=
Guest
Posts: n/a
 
      3rd Mar 2006
I missed the last AND statement, in there...

If [Region] = "x" And [EmployerSize] = "x" And [City] = "x" Then
*Do this*
Else
*Do this*
End If

Sharkbyte




"Sharkbyte" wrote:

> Yes.
>
> If [Region] = "x" and [EmployerSize] = "x" [City] = "x" Then
> *Do this*
> Else
> *Do this*
> End If
>
>
> Sharkbyte
>
>
>
>
> "Allen" wrote:
>
> > I have a database with compensation data in it which is divided by row into
> > summary data for a specific cut of data to a position. For example I have a
> > job of Accountant and summary data for this position split out by region on
> > one, revenue size of employer on another row, or located in a city or not on
> > another row and total of all splits on another row.
> >
> > In my query I am trying to write an equation that will say if I have x
> > region and x employer size and x city then use them all. If not then only
> > use total split.
> >
> > Is this possible?

 
Reply With Quote
 
=?Utf-8?B?QWxsZW4=?=
Guest
Posts: n/a
 
      3rd Mar 2006
thanks for the feedback and I was worried that I was not clear on the way the
database is set up. I have rows of accountant data by data split, so I'm
trying to grab just those rows of split data in the [LINEID].

So [LINEID] is equal to "und300" and "totRevMid" and "rurlrp". If I don't
have all three then just give me [LINEID] "totalrp".

I hope that makes more sense.



"Sharkbyte" wrote:

> I missed the last AND statement, in there...
>
> If [Region] = "x" And [EmployerSize] = "x" And [City] = "x" Then
> *Do this*
> Else
> *Do this*
> End If
>
> Sharkbyte
>
>
>
>
> "Sharkbyte" wrote:
>
> > Yes.
> >
> > If [Region] = "x" and [EmployerSize] = "x" [City] = "x" Then
> > *Do this*
> > Else
> > *Do this*
> > End If
> >
> >
> > Sharkbyte
> >
> >
> >
> >
> > "Allen" wrote:
> >
> > > I have a database with compensation data in it which is divided by row into
> > > summary data for a specific cut of data to a position. For example I have a
> > > job of Accountant and summary data for this position split out by region on
> > > one, revenue size of employer on another row, or located in a city or not on
> > > another row and total of all splits on another row.
> > >
> > > In my query I am trying to write an equation that will say if I have x
> > > region and x employer size and x city then use them all. If not then only
> > > use total split.
> > >
> > > Is this possible?

 
Reply With Quote
 
=?Utf-8?B?U2hhcmtieXRl?=
Guest
Posts: n/a
 
      6th Mar 2006
Allen:

So your statement might look something liek this:

'Statement meets your criteria
If [LineID1] = "und300" and [LineID2] = "totRevMid" and [LineID3] = "rurlrp"
Then
<do this>

'Statement Doesn't meet your criteria and only want "totlrp" returned
Else
<do this>
End If

Sharkbyte


"Allen" wrote:

> thanks for the feedback and I was worried that I was not clear on the way the
> database is set up. I have rows of accountant data by data split, so I'm
> trying to grab just those rows of split data in the [LINEID].
>
> So [LINEID] is equal to "und300" and "totRevMid" and "rurlrp". If I don't
> have all three then just give me [LINEID] "totalrp".
>
> I hope that makes more sense.
>
>
>
> "Sharkbyte" wrote:
>
> > I missed the last AND statement, in there...
> >
> > If [Region] = "x" And [EmployerSize] = "x" And [City] = "x" Then
> > *Do this*
> > Else
> > *Do this*
> > End If
> >
> > Sharkbyte
> >
> >
> >
> >
> > "Sharkbyte" wrote:
> >
> > > Yes.
> > >
> > > If [Region] = "x" and [EmployerSize] = "x" [City] = "x" Then
> > > *Do this*
> > > Else
> > > *Do this*
> > > End If
> > >
> > >
> > > Sharkbyte
> > >
> > >
> > >
> > >
> > > "Allen" wrote:
> > >
> > > > I have a database with compensation data in it which is divided by row into
> > > > summary data for a specific cut of data to a position. For example I have a
> > > > job of Accountant and summary data for this position split out by region on
> > > > one, revenue size of employer on another row, or located in a city or not on
> > > > another row and total of all splits on another row.
> > > >
> > > > In my query I am trying to write an equation that will say if I have x
> > > > region and x employer size and x city then use them all. If not then only
> > > > use total split.
> > > >
> > > > Is this possible?

 
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
Multiple values in criteria field colettelamm@gmail.com Microsoft Access Queries 2 4th Oct 2007 10:31 PM
Criteria of two field values being equal =?Utf-8?B?Qi4gTWVpbmNrZQ==?= Microsoft Access Queries 2 12th Feb 2007 06:58 PM
RE: Criteria Field with different parameter values =?Utf-8?B?S0FSTCBERVdFWQ==?= Microsoft Access Queries 0 23rd Jun 2006 12:45 AM
Re: sum values in a field using criteria from another field Duane Hookom Microsoft Access Reports 0 24th Aug 2005 07:55 PM
Function for summing values of a field by date criteria Lawrence Microsoft Excel Programming 0 9th Feb 2005 04:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:37 AM.