PC Review


Reply
Thread Tools Rate Thread

budget figure in actual field if blank

 
 
MikeF
Guest
Posts: n/a
 
      5th May 2010

Two tables, one is Budget the other Actual, sorted by RevID – a primary key
in both tables, feeding a query.

In qryNetRev …..
If the value for a record from Actual.NetRev is blank, would like that field
to return the value for that same record from Budget.NetRev.

This *has* to be a very normal practice, but can’t quite get the syntax
correct.

Any assistance will be much appreciated.

Thanx,
- Mike


 
Reply With Quote
 
 
 
 
XPS350
Guest
Posts: n/a
 
      5th May 2010
On 5 mei, 02:47, MikeF <Mi...@discussions.microsoft.com> wrote:
> Two tables, one is Budget the other Actual, sorted by RevID – a primarykey
> in both tables, feeding a query.
>
> In qryNetRev …..
> If the value for a record from Actual.NetRev is blank, would like that field
> to return the value for that same record from Budget.NetRev.
>
> This *has* to be a very normal practice, but can’t quite get the syntax
> correct.
>
> Any assistance will be much appreciated.
>
> Thanx,
> - * * * Mike


Add a field to the query.
YouNameIt: IIF(IsNull(Actual.NetRev);Budget.NetRev;Actual.NetRev)


Groeten,

Peter
http://access.xps350.com
 
Reply With Quote
 
MikeF
Guest
Posts: n/a
 
      5th May 2010
Thanx, that worked [except w/commas, not ";"].

"XPS350" wrote:

> On 5 mei, 02:47, MikeF <Mi...@discussions.microsoft.com> wrote:
> > Two tables, one is Budget the other Actual, sorted by RevID – a primary key
> > in both tables, feeding a query.
> >
> > In qryNetRev …..
> > If the value for a record from Actual.NetRev is blank, would like that field
> > to return the value for that same record from Budget.NetRev.
> >
> > This *has* to be a very normal practice, but can’t quite get the syntax
> > correct.
> >
> > Any assistance will be much appreciated.
> >
> > Thanx,
> > - Mike

>
> Add a field to the query.
> YouNameIt: IIF(IsNull(Actual.NetRev);Budget.NetRev;Actual.NetRev)
>
>
> Groeten,
>
> Peter
> http://access.xps350.com
> .
>

 
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
Compare budget to actual Albert Microsoft Excel Misc 0 21st May 2009 07:39 AM
Compare budget to actual Albert Microsoft Excel Misc 0 21st May 2009 07:39 AM
Re: Budget v Actual Van T. Dinh Microsoft Access Queries 1 11th Jan 2007 12:13 AM
Budget vs. Actual =?Utf-8?B?U3RhbmxleQ==?= Microsoft Excel Misc 0 16th Dec 2005 08:59 PM
Budget v Actual =?Utf-8?B?THVpZ2kxMjA5?= Microsoft Access Queries 3 27th Jul 2005 11:17 AM


Features
 

Advertising
 

Newsgroups
 


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