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 
Save printable Form
Stephen Meiring 
   
3 years ago
Hello,

Need Code to save Printable Form to Network Drive Location.

Thank you.
Juan C Rivera  @Reply  
            
3 years ago
Need more info what are you trying to do?
Kevin Robertson  @Reply  
          
3 years ago
Stephen Meiring OP  @Reply  
   
2 years ago
Hello,

I have a printable form in access, it looks like the PDF version of our NCMR forms. Everything is transferring from the input form to the printable form and I am able to print. I need to know how to save the current record to our network drive location. When i try to export as a PDF, it saves all 6,000 records. I am attaching photos.
Stephen Meiring OP  @Reply  
   
2 years ago

Stephen Meiring OP  @Reply  
   
2 years ago

Stephen Meiring OP  @Reply  
   
2 years ago

Kevin Yip  @Reply  
     
2 years ago
You need to use the proper filter for your report so it won't print 6000 records.  If you only want to print for the record whose ID field equals 1, then this code will open the report with the filter "ID=1" applied:

     DoCmd.OpenReport "MyReport", acViewPreview, , "ID = 1"

This code will export the report above to a PDF and save it in the specified path:

     DoCmd.OutputTo acOutputReport, , acFormatPDF, "C:\My Documents\MyReport.pdf"
Stephen Meiring OP  @Reply  
   
2 years ago
Hello Kevin,

Ii have created a Report, everything is transferring to the report correctly.

I can't get the Report to display the NCMR's in Descending order and When I hit the open report button It is opening the report, but the report is blank.

My code is this:

Private Sub Open_Form_Click()
    DoCmd.OpenReport "1-NCMR Print Form Report", acViewPreview, , "ID=1"
End Sub
Kevin Yip  @Reply  
     
2 years ago
"ID=1" is just a placeholder I used to illustrate what a filter expression looks like.  You need to use your own field name and value for it.  E.g.: "[MyFieldName] = MyValue"

If your report uses grouping and sorting, they determine the sort order, so you need to set the sort order in the grouping and sorting settings.  If grouping and sorting are not used, then the "Order by" property on the report's property sheet determines the sort order.
Stephen Meiring OP  @Reply  
   
2 years ago
Hello Kevin,

I got it to work. Both Saving and printing. Thank you for all the help!

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