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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

DSUM Date Criteria



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 07:48 PM posted to microsoft.public.access.queries
rebeca
external usenet poster
 
Posts: 43
Default DSUM Date Criteria

could someone please tell me how to write the criteria for DSUM where
the first criteria is date1 date 2 and the second critera is date 1
= date3


I'm getting Null for a total. This is what I have :

=DSum("total1","SN AR Log Query2","Physician = '" & [Physician] & "'"
& "AND [batch date] = #" & [BeginningARDate] & "# AND #" & [batch
date][reportStartDate] & "#")

Thank you
  #2  
Old March 18th, 2010, 09:23 PM posted to microsoft.public.access.queries
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default DSUM Date Criteria

=DSum("total1","SN AR Log Query2","Physician = '" & [Physician] & "'"
& "AND [batch date] = #" & [BeginningARDate] & "# AND [batch
date][reportStartDate]")


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Rebeca" wrote in message
...
could someone please tell me how to write the criteria for DSUM where
the first criteria is date1 date 2 and the second critera is date 1
= date3


I'm getting Null for a total. This is what I have :

=DSum("total1","SN AR Log Query2","Physician = '" & [Physician] & "'"
& "AND [batch date] = #" & [BeginningARDate] & "# AND #" & [batch
date][reportStartDate] & "#")

Thank you



  #3  
Old March 22nd, 2010, 02:18 PM posted to microsoft.public.access.queries
rebeca
external usenet poster
 
Posts: 43
Default DSUM Date Criteria

On Mar 18, 4:23*pm, "Douglas J. Steele"
wrote:
=DSum("total1","SN AR Log Query2","Physician = '" & [Physician] & "'"
& "AND [batch date] = #" & [BeginningARDate] & "# AND [batch
date][reportStartDate]")

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no private e-mails, please)

"Rebeca" wrote in message

...



could someone please tell me how to write the criteria for DSUM where
the first criteria is date1 date 2 and the second critera is date 1
= *date3


I'm getting Null for a total. *This is what I have :


=DSum("total1","SN AR Log Query2","Physician = '" & [Physician] & "'"
& "AND [batch date] = #" & [BeginningARDate] & "# AND #" & [batch
date][reportStartDate] & "#")


Thank you - Hide quoted text -


- Show quoted text -


One little ampersand....LOL, who knew. Anyway, I am getting #error on
this now. I am placing this in a text field on a report. I'm thinking
that the problem is [batch date] as according to my formula, it is
looking at the report. How do I rework this to look at the "batch
date" field in SN AR Log Query2 instead? Or am I offbase?

Thanks!
  #4  
Old March 22nd, 2010, 03:19 PM posted to microsoft.public.access.queries
rebeca
external usenet poster
 
Posts: 43
Default DSUM Date Criteria

On Mar 18, 4:23*pm, "Douglas J. Steele"
wrote:
=DSum("total1","SN AR Log Query2","Physician = '" & [Physician] & "'"
& "AND [batch date] = #" & [BeginningARDate] & "# AND [batch
date][reportStartDate]")

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no private e-mails, please)

"Rebeca" wrote in message

...



could someone please tell me how to write the criteria for DSUM where
the first criteria is date1 date 2 and the second critera is date 1
= *date3


I'm getting Null for a total. *This is what I have :


=DSum("total1","SN AR Log Query2","Physician = '" & [Physician] & "'"
& "AND [batch date] = #" & [BeginningARDate] & "# AND #" & [batch
date][reportStartDate] & "#")


Thank you - Hide quoted text -


- Show quoted text -


One little ampersand...who knew, LOL! Works great thank you
 




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 04:48 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.