B
BillS
I have a data input form that I would like to have the end users print for a
quick and dirty copy. I can have them go to print and select current
record(s) but would much rather have them be able to just press a button. I
know how to create a report to print the information but would rather do it
from code so I can use that code on other forms in the future.
I have used the following code but it prints all of the forms. I can not
find any arguments to print the current active record.
stDocName = "frmProHeader"
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
Any Suggestions?
quick and dirty copy. I can have them go to print and select current
record(s) but would much rather have them be able to just press a button. I
know how to create a report to print the information but would rather do it
from code so I can use that code on other forms in the future.
I have used the following code but it prints all of the forms. I can not
find any arguments to print the current active record.
stDocName = "frmProHeader"
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
Any Suggestions?