Printing record entered on form.

F

FLGuy

I have a form that is used to log trouble calls to our support desk. We have
designed a report that allows us to print that support ticket. My only
issues is that when you click the print button you need to enter the support
ticket number to print the data. Is there anyway to have the data that is on
the screen to print in our format just by clicking on a print button?
 
K

Keith Wilby

FLGuy said:
I have a form that is used to log trouble calls to our support desk. We
have
designed a report that allows us to print that support ticket. My only
issues is that when you click the print button you need to enter the
support
ticket number to print the data. Is there anyway to have the data that is
on
the screen to print in our format just by clicking on a print button?

Yes, provided that your records have a primary key. Assuming you have a PK
control on your form called "txtID" bound to a field called "ID", you could
use the "where" condition of the Open Report method thus:

DoCmd.OpenReport "rptMyReport", acViewPreview, , "[ID] = " & Me.txtID

Keith.
www.keithwilby.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top