Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Run-time error

    I have the following code on form print button

    The first copy prints OK, then generates the following error:

    Run-time error

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

    Re: Run-time error

    The code probably doesn't wait until the first printout has finished, so the second time you set the caption, the report is still being printed. You could try closing and reopening the report, or use the On Timer event of the form to create a delay.

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Run-time error

    While waiting for response I did what you suggested with success.

    In the other app the report is more complex probably explaining why I haven

Posting Permissions

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