• Insert date when printing form (2000 SP-3)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Insert date when printing form (2000 SP-3)

    Author
    Topic
    #435738

    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?

    Viewing 0 reply threads
    Author
    Replies
    • #1030743

      I do get the date in the upper right corner when I print a datasheet form, but the header and footer for a datasheet form are not configurable, so if it doesn’t work for you, you’re out of luck. I would recommend creating a report; you have complete control over the header and footer in a report.

      • #1030877

        We must be using different versions, or something. Thanks anyway!
        Brady

    Viewing 0 reply threads
    Reply To: Insert date when printing form (2000 SP-3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: