A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Look Up Function



 
 
Thread Tools Display Modes
  #1  
Old January 22nd, 2006, 04:09 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Look Up Function

I have a class summary report and i would like to find the number of missing
assignments. The missing assigment report is from another query. Is there a
way i can create a formula in my summary report and obtain the information
from my missing assignment query. Thanks you in advance.

Stephen
  #2  
Old January 22nd, 2006, 06:50 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Look Up Function

If the query return only one record, you could write in the control source of
a text field in the report

=DLookUp("FieldName","QueryName")

If you need to sum few records that return with this query use Dsum instead
=Dsum("FieldName","QueryName")

--
\\// Live Long and Prosper \\//
BS"D


"Stephen" wrote:

I have a class summary report and i would like to find the number of missing
assignments. The missing assigment report is from another query. Is there a
way i can create a formula in my summary report and obtain the information
from my missing assignment query. Thanks you in advance.

Stephen

  #3  
Old January 23rd, 2006, 04:07 AM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Look Up Function

Thanks for your help! I have another question for you.
I am trying to count the Completed Assignments field, which is a "Yes" and
"No" Data Type and place the information in the summary report. I am trying
to obtain a count of students who missed their assignments. I am using the
following formula: By the way, "Class Assignments Missed" is a Query.

DCount("Completed Assignments","Class Assignments Missed")

When i use this i obtain an error.

Thanks

Steve

I have a class summary report and i would like to find the number of missing
assignments. The missing assigment report is from another query. Is there a
way i can create a formula in my summary report and obtain the information
from my missing assignment query. Thanks you in advance.


"Ofer" wrote:

If the query return only one record, you could write in the control source of
a text field in the report

=DLookUp("FieldName","QueryName")

If you need to sum few records that return with this query use Dsum instead
=Dsum("FieldName","QueryName")

--
\\// Live Long and Prosper \\//
BS"D


"Stephen" wrote:

I have a class summary report and i would like to find the number of missing
assignments. The missing assigment report is from another query. Is there a
way i can create a formula in my summary report and obtain the information
from my missing assignment query. Thanks you in advance.

Stephen

  #4  
Old January 23rd, 2006, 04:42 AM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Look Up Function

To "count" the number of No values in a field named "MyField" in a report,
add a text box to the report footer (or group footer) with a control source
of:
=Sum([MyField]+1)
This works because the YesNo field stores a value of -1 for Yes and 0 for
No. Adding 1 to these values results in yes=0 and no=1. Summing the
expression results in a count of No values.

--
Duane Hookom
MS Access MVP
--

"Stephen" wrote in message
...
Thanks for your help! I have another question for you.
I am trying to count the Completed Assignments field, which is a "Yes"
and
"No" Data Type and place the information in the summary report. I am
trying
to obtain a count of students who missed their assignments. I am using
the
following formula: By the way, "Class Assignments Missed" is a Query.

DCount("Completed Assignments","Class Assignments Missed")

When i use this i obtain an error.

Thanks

Steve

I have a class summary report and i would like to find the number of
missing
assignments. The missing assigment report is from another query. Is there
a
way i can create a formula in my summary report and obtain the information
from my missing assignment query. Thanks you in advance.


"Ofer" wrote:

If the query return only one record, you could write in the control
source of
a text field in the report

=DLookUp("FieldName","QueryName")

If you need to sum few records that return with this query use Dsum
instead
=Dsum("FieldName","QueryName")

--
\\// Live Long and Prosper \\//
BS"D


"Stephen" wrote:

I have a class summary report and i would like to find the number of
missing
assignments. The missing assigment report is from another query. Is
there a
way i can create a formula in my summary report and obtain the
information
from my missing assignment query. Thanks you in advance.

Stephen



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
determine if Excel is open geebee General Discussion 11 January 20th, 2006 09:25 PM
How to modify function Kevin General Discussion 5 January 4th, 2006 10:12 PM
SPELL CURRENCY FUNCTION Rajesh Using Forms 1 October 1st, 2005 11:04 PM
Attaching Code DS General Discussion 2 August 22nd, 2005 11:21 PM
Need a ISWorkday Function -- Any Ideas Mark Worksheet Functions 5 March 29th, 2005 01:58 AM


All times are GMT +1. The time now is 09:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.