PC Review


Reply
Thread Tools Rate Thread

correct formulation of expression in control source

 
 
LP
Guest
Posts: n/a
 
      8th Jan 2008
How can I combine 2 expressions that use the DCount function?
For example, in control source,
=DCount("[Field1]","qryX","[Field1]=True") will give me a value Y which I
need to add to another value obtained by
=DCount("[Field1]",qryZ","[Field1]=True").
I have tried various bits such as =DCount("[Field1]","qryX" And
"qryZ","[Field1]=True") but that does not work.
Can anyone help?
Regards
 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      8th Jan 2008
Have you tried

=DCount("[Field1]","qryX","[Field1]=True") +
DCount("[Field1]",qryZ","[Field1]=True").


--
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"LP" <(E-Mail Removed)> wrote in message
news:9196E721-6092-45AD-8642-(E-Mail Removed)...
> How can I combine 2 expressions that use the DCount function?
> For example, in control source,
> =DCount("[Field1]","qryX","[Field1]=True") will give me a value Y which I
> need to add to another value obtained by
> =DCount("[Field1]",qryZ","[Field1]=True").
> I have tried various bits such as =DCount("[Field1]","qryX" And
> "qryZ","[Field1]=True") but that does not work.
> Can anyone help?
> Regards



 
Reply With Quote
 
LP
Guest
Posts: n/a
 
      9th Jan 2008
Many thanks for this John
Regards
LP

"John Spencer" wrote:

> Have you tried
>
> =DCount("[Field1]","qryX","[Field1]=True") +
> DCount("[Field1]",qryZ","[Field1]=True").
>
>
> --
> John Spencer
> Access MVP 2002-2005, 2007-2008
> Center for Health Program Development and Management
> University of Maryland Baltimore County
> ..
>
> "LP" <(E-Mail Removed)> wrote in message
> news:9196E721-6092-45AD-8642-(E-Mail Removed)...
> > How can I combine 2 expressions that use the DCount function?
> > For example, in control source,
> > =DCount("[Field1]","qryX","[Field1]=True") will give me a value Y which I
> > need to add to another value obtained by
> > =DCount("[Field1]",qryZ","[Field1]=True").
> > I have tried various bits such as =DCount("[Field1]","qryX" And
> > "qryZ","[Field1]=True") but that does not work.
> > Can anyone help?
> > Regards

>
>
>

 
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
Use VB expression as control source? Bryan Microsoft Access 1 26th Mar 2009 06:55 PM
Control Source Expression is too Complex Jim Johnson Microsoft Access Forms 5 16th Apr 2008 05:57 AM
Control Source Expression BigAl.NZ@gmail.com Microsoft Access 5 6th May 2007 03:19 AM
The correct expression to create calculated control for (populati. =?Utf-8?B?Y2hpY29yaWNhbm8=?= Microsoft Access Getting Started 2 19th Mar 2007 04:28 PM
Unable to fit expression in control source Amit Microsoft Access Form Coding 0 26th Aug 2004 05:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:26 PM.