Mailing Label

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an Invoice Form with a mailing address on it (made up of a series of
text box's). I have a button on this form labeled "Print Mailing Label".
How do I get this to print a label On Click.

Steve
 
You can open a report based upon the ID of the record with the data you
want:

DoCmd.OpenReport "rptMailingLabel",,,"ID=" & Me.IDValue

or you can open a report, and in the report's open event, pass the values
from the form (aircode):

Sub Report_Open()
Me.txtName = Forms!frmWhatever!txtName
Me.txtAddress = Forms!frmWhatever!txtAddress
Me.txtCityStateZip = Forms!frmWhatever!txtCity & ", " & _
Forms!frmWhatever!txtState & " " & _
Forms!frmWhatever!txtZip
End Sub
 

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

Back
Top