Solved

DSum in Access Form

Posted on 2013-06-06
2
446 Views
Last Modified: 2013-06-06
I'm trying to get my DSum formula to work but it doesn't seem to want to. I'm using the criteria with formatting to 'mmm-yy' but it doesn't seem to work. Can anyone shed any light on the problem?

=DSum("fqtyrecv","qryPOHistory","Format([fdaterecv],'mmm-yy')=#" & Format([Forms]![sfrmPurchaseAnalysisPOHistory]![txtMonth1],'mmm-yy') & "#")

Open in new window

0
Comment
Question by:Lawrence Salvucci
2 Comments
 
LVL 4

Accepted Solution

by:
BAKADY earned 500 total points
ID: 39226769
Try this:


=DSum("fqtyrecv","qryPOHistory","Format([fdaterecv],'mmm-yy')='" & Format([Forms]![sfrmPurchaseAnalysisPOHistory]![txtMonth1],'mmm-yy') & "'")

NOTE: Format convert your values into strings!!!

Regards
0
 
LVL 1

Author Comment

by:Lawrence Salvucci
ID: 39226782
Ahhh...Gotcha! Thank you!
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question