Results 1 to 3 of 3

Thread: VBA ONPRINT for a FORM

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    65

    Red face

    Anyone know how to trap an Onprint event for an
    Access FORM

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    60
    This goes quite deep into vb, you have to do some subclassing, i recommend that you find a tutorial on subclassing, i believe there was one at http://www.vbsquare.com a while back. You will have to right your own function to handle events sent to the form, and any you know the form will handle or you dont want, you pass them back to the forms default fuction. I would use Spy++ to find out what message you are looking for first, then readup on subclassing, the theory is quite deep but once you get used to it, there really isn't that much to it.

    Hope this helps,
    Grant French
    -----------------------------------------------
    E-Mail: [email protected]
    ICQ: 33122184

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    65
    thanks for your interest gfrench
    after playing around with a few ideas I came up with an easier solution:
    I created a utility toolbar to replace the form's default bars, and coded stuff in the 'on action' property of the print button
    seems nice and neat !!
    thanks again

Posting Permissions

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



Click Here to Expand Forum to Full Width