Command Button: Print Form - VBA code

Please support our MS Access and FileMaker Pro advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jul 2008
Posts: 5
Reputation: cjwilkins is an unknown quantity at this point 
Solved Threads: 0
cjwilkins cjwilkins is offline Offline
Newbie Poster

Command Button: Print Form - VBA code

 
0
  #1
Jul 9th, 2008
Help! I think that this should be easy but I have not been able to find the correct VBA code to get the Form to print only the current record not all 1651 records.

I have a command button (Print) and walked through the wizard correctly to print "only the current record" but it is NOT doing that. So, I thought I could tweek it in code but can't get it right so it's still printing our 367 pages (all the records).

Can anyone "lend" me some code that I can add to my command button to do this. I realize that printing and VBA are sometimes messy but if anyone out there has already solved this problem, my non-profit and I would be very grateful. I'm working in Access '02. I'm not an expert but also not a novice.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 44
Reputation: boblarson is an unknown quantity at this point 
Solved Threads: 3
boblarson boblarson is offline Offline
Light Poster

Re: Command Button: Print Form - VBA code

 
0
  #2
Jul 11th, 2008
What is the code that you currently have tried?
Bob Larson, Access MVP
____________________________________
For Quick Tutorials and Samples for Microsoft Access: BTAB Development
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 5
Reputation: cjwilkins is an unknown quantity at this point 
Solved Threads: 0
cjwilkins cjwilkins is offline Offline
Newbie Poster

Re: Command Button: Print Form - VBA code

 
0
  #3
Jul 11th, 2008
Originally Posted by boblarson View Post
What is the code that you currently have tried?
Thanks Bob for asking but I think I can solve the problem by just making a macro and attaching that to the command button. If that doesn't work, well then I may just be back to beg for help.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 5
Reputation: cjwilkins is an unknown quantity at this point 
Solved Threads: 0
cjwilkins cjwilkins is offline Offline
Newbie Poster

Re: Command Button: Print Form - VBA code

 
0
  #4
Jul 11th, 2008
It worked. I knew there was an easy solution but I was just too tired to find it the other day. Thanks so much anyway.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 44
Reputation: boblarson is an unknown quantity at this point 
Solved Threads: 3
boblarson boblarson is offline Offline
Light Poster

Re: Command Button: Print Form - VBA code

 
0
  #5
Jul 13th, 2008
Well, at least you got something working the way you wanted. Good to hear
Bob Larson, Access MVP
____________________________________
For Quick Tutorials and Samples for Microsoft Access: BTAB Development
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 1
Reputation: NatalieEvans__x is an unknown quantity at this point 
Solved Threads: 0
NatalieEvans__x NatalieEvans__x is offline Offline
Newbie Poster

Re: Command Button: Print Form - VBA code

 
0
  #6
Nov 7th, 2008
How did you get it to print just the one record?
Ive been trying for weeks to get a code to work with no luck
Ive also been trying to get a code to delete the record that my page is on when browsing through records, with the same amount of luck
Help Me Please Someone
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 1
Reputation: semky is an unknown quantity at this point 
Solved Threads: 0
semky semky is offline Offline
Newbie Poster
 
0
  #7
33 Days Ago
Originally Posted by cjwilkins View Post
It worked. I knew there was an easy solution but I was just too tired to find it the other day. Thanks so much anyway.
So what was the answer.
Reply With Quote Quick reply to this message  
Reply

Message:



Other Threads in the MS Access and FileMaker Pro Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC