I use the following code to print out hard copies of a datasheet form:
Private Sub cmdFileCopy_Click()
On Error GoTo Err_cmdFileCopy_Click
Dim stDocName As String
Dim MyForm As Form
stDocName = “frmAssignmentEntrySub”
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
Exit_cmdFileCopy_Click:
Exit Sub
Err_cmdFileCopy_Click:
MsgBox Err.Description
Resume Exit_cmdFileCopy_Click
End Sub
Does anyone know of a simple way to insert the date at the upper or lower right corner of the printout?