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  

DCount Function with Input Parameters



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2004, 01:40 AM
Tom Lake
external usenet poster
 
Posts: n/a
Default DCount Function with Input Parameters


wrote in message
...
With this syntax, I'm getting #Error when I display the
report.

Any other thoughts?


My bad. Try this:

=DCount("[issue_number]","issues","[date_opened] between #" & [startdate] &
"# and #" & [enddate] & "#")

Tom Lake


  #2  
Old May 18th, 2004, 08:36 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default DCount Function with Input Parameters

If your report is based on the table/query "Issues" then using DCount() is a
waste of resources. If the report is limited to the date range then just
use:
=Count("[Issue_Number]")
If the report isn't filter by the date range then use:

=Sum(Abs([date_opened] = [startdate] And [Date_Opened] = [enddate]))

--
Duane Hookom
MS Access MVP


"Tom Lake" wrote in message
...

wrote in message
...
With this syntax, I'm getting #Error when I display the
report.

Any other thoughts?


My bad. Try this:

=DCount("[issue_number]","issues","[date_opened] between #" & [startdate]

&
"# and #" & [enddate] & "#")

Tom Lake




 




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


All times are GMT +1. The time now is 12:44 AM.


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