Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Another DSum question

Posted on 2011-04-21
4
Medium Priority
?
235 Views
Last Modified: 2013-11-05
Can someone tell me what is wrong with this code?  Am using it in an unbouse field on a report.

=DSum([Cost],"tblOutpurchase","[EstN] = frmEstimateHeader!txtRealEstN")
0
Comment
Question by:SteveL13
  • 2
  • 2
4 Comments
 
LVL 75
ID: 35444928
Maybe this - if EstN is Text ?

=DSum([Cost],"tblOutpurchase","[EstN] = " & Chr(34) & Forms!frmEstimateHeader!txtRealEstN & Chr(34))

mx
0
 

Author Comment

by:SteveL13
ID: 35444943
Hmmm, I get a "Enter parameter value --  Cost" when I try to run the report.  I know Cost is the field in the table tblOutpurchase.  
0
 

Author Comment

by:SteveL13
ID: 35444945
And EstN is a text field.
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 2000 total points
ID: 35444959
oops - need double quotes

=DSum("[Cost]","tblOutpurchase","[EstN] = " & Chr(34) & Forms!frmEstimateHeader!txtRealEstN & Chr(34))
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

577 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