LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Printing a selected record

Hi,
I have a simple check keeping database that also prints out checks on laser
single sheet checks. I created a form to enter the check data, and then a
form to print the check. This print form only has the pertinent info and is
spaced to fill in the blanks on the laser check. It worked fine until I
added a second check record. Now when I hit the print button, it always
prints all the records. I want it to print the record data that is in the
"EnterCheck" form in the "PrintrCheck" form. Here is the current code that
does the printing and is run when I click on the print button on the
"EnterCheck" form, I have not been able to get it to only print the data
which is displayed in the current form.

Private Sub PrintCheck_Click()
Dim stDocName As String
Dim MyForm As Form

stDocName = "PrintrCheck"
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
End Sub
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open new record with selected fields from previous record Design by Sue Excel Discussion (Misc queries) 1 June 12th 09 02:24 PM
Please advise on the production of a frontend, to view selected record(s) of a completed worksheet DD Excel Programming 1 November 29th 06 05:50 AM
Printing a database record Fiat-Lux Excel Discussion (Misc queries) 1 February 11th 06 12:02 PM
Moving The Selected Record From One Sheet To Another LoveCandle[_26_] Excel Programming 3 February 1st 06 04:47 AM
How to record macro to work on selected column/row? Olezhka Excel Programming 1 March 5th 04 07:30 PM


All times are GMT +1. The time now is 07:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"