In my cmdPrint_click code I put in a DoEvent to allow the user to click on the Cancel button..
This works find but....
You visually can not tell the button was depressed. It also takes a while to trigger the cmdCancel_click and since you can't tell you depressed the button you tend to sit there clicking on it.. So never the less I need to figure out either why it does not call the normal routines to trigger the button depression(I maybe doing my DoEvent wrong) or mimic it myself.
Here is my code in the cmdPrint where it allows the user the abiltiy to press the cancel button..
CancelPrint is set to true in the cmdCancel_click event if you user answers YES to wanting to cancel the print job.
I did not use any WithEvents... Not sure if I need to
Does anyone know how to do this..
Thanks Alley
This works find but....
You visually can not tell the button was depressed. It also takes a while to trigger the cmdCancel_click and since you can't tell you depressed the button you tend to sit there clicking on it.. So never the less I need to figure out either why it does not call the normal routines to trigger the button depression(I maybe doing my DoEvent wrong) or mimic it myself.
Here is my code in the cmdPrint where it allows the user the abiltiy to press the cancel button..
Code:
'Make Cancel Print Button Visible Bug#124 ALH 12/2/04
Me.cmdCancel.Visible = True
Do While Not rst.EOF
DoEvents
If CancelPrint Then
Exit Do
End If
Call Print_Quad_Chart_FY05(NZ(rst("Quad_id").value, 0), True, pfile, pout, copies)
rst.MoveNext
Loop
I did not use any WithEvents... Not sure if I need to
Does anyone know how to do this..
Thanks Alley