Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Field Error in Report
Asteropi Papadopoulou 
   
2 years ago
I have 3 reports printing for wholesale and retail customers
When printing for wholesale everything is fine

When printng for customers however, the OrderSum field (using a Dsum command) shows an error, even though the individual costs are all calculated correctly. In the relevant form it shows up just fine, it's the report that get's the error

I can only imagine that the problem is because the retail price is coming from a calculation and not a direct input
I input my wholesale prices directly without VAT in the table
However for retail, I input the final price and then I have another field where it removes the VAT with a calculation.
Then in the OrderQ I have a Price field that runs an IF command that basically says if customer is Wholesale, get wholesale price, but if customer is retail get the retail-no-vat-calculated price
But since the form is fine, I don't know wy it's not working in the report. I used the exact same command. Help!
John Davy  @Reply  
         
2 years ago
Hi Asteropi

Make sure the record source for your report includes all the fields needed for the calculation. If your report's record source does not include the fields used in the DSUM function or in the calculation, this could cause issues.

HTH
John
Adam Schwanz  @Reply  
           
2 years ago
Also just a tip I've found when doing calculations in a form, and then re-doing those calculations inside a report. If you open that report from that form screen, there's no reason to re-do the calculations. You can just take the results directly from the form. So instead of doing =DSUM("Amount","AmountT") on a field called MyFormAmount on the form and =DSUM("Amount","AmountT") on a field called MyReportAmount on the report, I will just do the form and then do =Forms!MyForm!MyAmount for MyReportAmount in the report. Now if you open the report seperately, you'll have to do calculations yea.
Asteropi Papadopoulou OP  @Reply  
   
2 years ago
Adam what you said really helped. It fixed the problem. Thank you so much!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/2/2026 7:16:41 AM. PLT: 0s