Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB print to file code

Status
Not open for further replies.

Costefran

Technical User
Jan 2, 2008
197
GB
Can anyone help

I would like to set up and after action event on a form that saves a report with the open record to file and the name of a saved document would reflect the value of a control named order reference number
So if the value in my Order Reference Number is"COFF01"

In laymans terms the action would go something like this

Controlz after udate

If [controlz]="Approved" then save a report called "current record" to (File Path) and call the saved document [Order Reference Number] which = COFF01......02 and so on

Any help would be appreciated as I have no idea where to start with coding

Thanks
 
You could reference the form order number control in the query on which the report is based and then use OutputTo to save the report to disk.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top