Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jan 2005
    Location
    Wichita, Kansas, USA
    Posts
    209
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adding a function in a module (2000)

    On a report that already has an event procedure set for "On Print", I want to also have it run a function "On Print" that causes it to skip blank labels on a page of labels. How do I add the function into the module?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Adding a function in a module (2000)

    You can merge the sets of instructions in one procedure:

    Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
    ' First set of instructions
    ...
    ...
    ' Second set of instructions
    ...
    ...
    End Sub

    or you can call two or more procedures/functions that are defined elsehwere:

    Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
    Call MyProcedure
    Call MyFunction
    End Sub

    or a mixture of the above:

    Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
    ' First set of instructions
    ...
    ...
    ' Second set of instructions
    ...
    ...
    Call MyFunction
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •