473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

DCOUNT Function,

1
Hey there,

Im trying to Calculate the Count of records on a Table with Parameters from another Query used to pass Values for the Same Report.


=DCount("[OTIFIC - Measures]![DNOTENO] ","OTIFIC - Measures"," [OTIFIC - Measures]![MCU] =[Query2]![FirstOfMCU] "
And
" [OTIFIC - Measures]![DATEGEN] Between # [From]# And #[To] #")

But, Im not able to pass the Parameters.
Aug 14 '07 #1
2 1905
MikeTheBike
639 Expert 512MB
Hey there,

Im trying to Calculate the Count of records on a Table with Parameters from another Query used to pass Values for the Same Report.


=DCount("[OTIFIC - Measures]![DNOTENO] ","OTIFIC - Measures"," [OTIFIC - Measures]![MCU] =[Query2]![FirstOfMCU] "
And
" [OTIFIC - Measures]![DATEGEN] Between # [From]# And #[To] #")

But, Im not able to pass the Parameters.
Hi

This is very confused, but for a start I suggest these modes and then post what happens!

=DCount("[DNOTENO] ","OTIFIC - Measures","[MCU] = " & [FirstOfMCU] & " AND [DATEGEN] Between #" & [From] & "# And #" & [To] & "#")

You don't say where this code is, but I assume that [FirstOfMCU] , [From] and [To] are fields in a forms recordsource ??

More info is required, as to where/how you are using this.

MTB
Aug 14 '07 #2
NeoPa
32,556 Expert Mod 16PB
Mike,
This is off-topic I know, but have you received a PM (Private Message) from me at all. I sent it a number of weeks ago but I'm not sure you've found the link to read them yet.
Please PM a response if you're able, or alternatively respond in here and I'll arrange to help with that and getting better communication going in the future.

Best regards -NeoPa.
Aug 21 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: jdph40 | last post by:
I posted this problem previously and received excellent help from Wayne Morgan. However, I still have an unanswered question. My form (frmVacationWeeks) is opened from the OnClick event of a...
1
by: Megan | last post by:
Hi Everybody- I've been reading some of the posts about DCOUNT, and I haven't yet found an answer; so, I'm posting this question. I have a report that I'm trying to use DCOUNT on to compute...
4
by: Will | last post by:
Hi, I had a DCount within a module on records in a table where CustSuffix = 0. I now need to DCount where CustSuffix = 0 and the type of cost Suffix (Suffix in table) = G. I can't get both...
6
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
3
by: BerkshireGuy | last post by:
I am having difficulty with using the Dcount function. I am trying to return the number of records from qryIndividualFeedbackDetail where the TimelyManner field is set to 4. So, in the new...
2
by: ChasW | last post by:
Greetings, I have a form that uses a query as its record source. In the form I have a text box that uses this as its control source: =DCount("", "qry_Search_by_Name") The DCount function...
2
by: Wingz | last post by:
Hiya, Fairly new to Access and was wondering what the best way to perform Dcounts on groups in an Access report. For example, I have 10 employees and the different instances of jobs they can...
36
by: bmyers | last post by:
Good afternoon, I am attempting to count only those records within a report, which is based on a query, where Status is equal to Closed. I have tried multiple variations of DCOUNT but am...
8
by: Susan Bricker | last post by:
I have used DCount() to determine the number of records in a recordset. Silly me ... I just noticed that DCount returns an INTEGER, which can hold a maximum value of 32,767. What if the recordset...
1
iBasho
by: iBasho | last post by:
Hi I am using the DCount function to check and alert users for existing IDs in my database after a new record is entered. ..Private Sub CARDID_AfterUpdate() If DCount("*", "", " = '" & Me. &...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.