Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Export to Word < On Click Event Timing | Number Field Size >
Back to Export to Word    Comments List
Export to Word Upload Images   Link   Email  
John Muir 
Followed instructions for VBA code. But, when I hit the button, it out puts 10,000 pages, not just the ID I'm working with. I put the button on a form that is opened from the main form.

To preview this same report i used: DoCmd.OpenReport "SAR non-litigation-Annuity Language-Minor" , acViewPreview, , "[ID]=" & [ID], and that works great.

How do I print this report to word and only get the report for the ID i'm working with?

Thanks,

John
Scott Axton
How are you printing it?  
You should be able to just print fom the preview screen and only print he single report, Not all of them.
If that syntax is returning the correct report it shouldn't print additional pages.
Adam Schwanz
Just to verify, is there an ID field on the form you're pushing the button on?

If there is, you have spaces and dashes in the name, very possible access is trying to do some kind of mathematical calculation with it. Try putting it in brackets and see if it works. [SAR non-litigation-Annuity Language-Minor]

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/4/2024 5:45:26 AM. PLT: 0s