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 
Display on report error
Mick Bullous 
    
2 years ago
I have created sales order and Purchase order database, however seem to have come accross a wierd thing. On the purchase order detail form I have the line items total, sales tax and PO Order total fields set up at the bottom. These seem to work OK and display OK. When I go to open the report to print the purchase order for some reason the sales tax is displaying '00.00. However when I print the report the sales tax is correct and is not '00.00. Any ideas?
Mick Bullous OP  @Reply  
    
2 years ago

Mick Bullous OP  @Reply  
    
2 years ago

Mick Bullous OP  @Reply  
    
2 years ago

Richard Rost  @Reply  
          
2 years ago
I've never seen that happen before. So you're saying if you do a print preview, the tax shows up as zero, but if you actually printed the paper, it prints out correctly? That's weird. Let me ask, did you run down the troubleshooter? Have you rebooted lately? Compacted and repaired the database? That kind of stuff that just seems like one of those weird quirky errors. Could be caused by anything from a memory leak to just a bug somewhere. Maybe try an office update too. Whenever people encounter something weird, I always tell them to just run down the troubleshooter, and 9 times out of 10, the problem goes away. Also, can you replicate this with other purchase orders? Is it just that one or other ones doing the same thing?
Sami Shamma  @Reply  
             
2 years ago
Mick,
Just to make sure, the print preview and the paper-printed report are coming from the same Access report, correct?
Richard Rost  @Reply  
          
2 years ago
I've seen differences in value sometimes if you open it up in normal report view because Access doesn't always run all the calculations in report view. But in print preview mode, it should look exactly as it's going to print out. So, it's got to be a bug or a glitch.
Mick Bullous OP  @Reply  
    
2 years ago
Its wierd but as long as the report prints out ok I can live with it. I wonder if its the command button. The reason I say this is because once the report is opened in print preview...if I right mouse and change to report or layout view the sales Tax amount is as it should be and the PO Order Total is correct. The VBA I have on the button is

Private Sub InvoiceBtn_Click()

    Me.Refresh
    DoCmd.OpenReport "PurchaseOrderInvoice2R", acViewPreview
    
End Sub
Mick Bullous OP  @Reply  
    
2 years ago
Or may be because I have the Sales Tax on the report to this

=[Forms]![PurchaseOrderF]![PurchaseOrderDetailF].[Form]![SalesTax]
Mick Bullous OP  @Reply  
    
2 years ago
Just responding to a question in your first comment...It does the same thing in all the purchase orders
Richard Rost  @Reply  
          
2 years ago
As long as that form is open when you preview the report it should get the value correctly
Mick Bullous OP  @Reply  
    
2 years ago
Think I have solved it. I removed the me.refresh from the command Burron VBA code and it seems to work OK now

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/7/2026 6:35:20 PM. PLT: 1s