:) hi all Im strugling with the code to a print button I need it to print the last report it has created only
I am inputing data into a data base in form view and need to print a report of that data every time I type in the data they are in a Justified view as thats how I need the data
the code I got is
stDocName = "report"
DoCmd.OpenRepor t stDocName, acNormal
DoCmd.OpenRepor t "report", acViewPreview
DoCmd.SelectObj ect acReport, "report", False
DoCmd.PrintOut [acPrintRange = acPages], [PageFrom 1], [PageTo 1], [AcPrintQuality = acHigh]
its doing my head in please help :eek: thanks
Saloc
I am inputing data into a data base in form view and need to print a report of that data every time I type in the data they are in a Justified view as thats how I need the data
the code I got is
stDocName = "report"
DoCmd.OpenRepor t stDocName, acNormal
DoCmd.OpenRepor t "report", acViewPreview
DoCmd.SelectObj ect acReport, "report", False
DoCmd.PrintOut [acPrintRange = acPages], [PageFrom 1], [PageTo 1], [AcPrintQuality = acHigh]
its doing my head in please help :eek: thanks
Saloc
Comment