Re: Date Parameters



Well, to fix the immediate problem you could probably use something like the following.

=DCount("[Call In Date]","Maintenance Info","([Completed By]='Jane Doe' Or
[Completed By-Second]='Jane Doe') And ([Call In Date] >=DateSerial(Year(Date()),1,1) And
[Call In Date]< DateSerial(Year(Date()),2,1))")

HOWEVER, I would venture to guess that there would be a much simpler way to fix this problem. In order to figure that out we would need to know more about the data structure and more about how these reports vary.




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

jlo wrote:
I have inherited a database that has reports for each month of the year. Inside the report are well over 50 fields that have expressions. In each expression, there is a date referenced. By the beginning of the next year, I have to change the current year to the new year." This is so tedious. Isn't there a way to do this better? Here is a sample of one expression. At the end of the year, I will have to go into 200 of these fields and change the year date to the new year.

Fields: Call In Date (date w/time); Completed By; Completed By-Second

=DCount("[Call In Date]","Maintenance Info","([Completed By]=Jane Doe' Or [Completed By-Second]='Jane Doe') And ([Call In Date] >=#01/01/2008# And [Call In Date]< #02/01/2008#)")

Any suggestions?
.



Relevant Pages

  • Re: Trouble with reading and appending to lines in a file...
    ... > I suspect Michael's answer will fix the ... > immediate problem, ... > Give it a try and see if it reveals ...
    (comp.lang.java.programmer)
  • Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]
    ... one immediate problem already: the 'nice offset' is not divided by ... The patch below should fix this but i have yet ...
    (Linux-Kernel)
  • Re: Repair business potential?
    ... I fix stuff on a regular basis, for which I _never_charge a cent, even ... and fewer take the time to be sure that the immediate problem was not ... being a hobby when there are financial and time pressures. ... Fix the obvious problems, dig no deeper, go ...
    (rec.audio.tubes)
  • Re: help : apostrophe/single quotation mark
    ... $query = sprintf("INSERT INTO Dora_Board (Title, Writer, Password, Contents, Date, Ip) ... There are several other chunks of code that need rewriting similarly, ... that should fix the immediate problem. ... If you don't fix these problems your site is open to being cracked by ...
    (comp.lang.php)
  • Re: how do I use vlookup for multiple occurrences of the same value
    ... trying to exhaust the possibility that there was something I wasn't understanding about the use of your formulas before saying that it was the formulas themselves that were screwed up. ... Much less venture a fix? ... I wouldn't consider venturing a "fix" unless and until I knew it was the formulas themselves and not my particular attempt to apply them that was the problem. ...
    (microsoft.public.excel.worksheet.functions)