Adding print button in form query (1 Viewer)

Pinoycoderz

New member
Local time
Today, 09:04
Joined
Jul 20, 2017
Messages
1
Hi I'm a newbie here and I hope someone can help me... I just want to add a print button in form_query. but everytime I print the header of the form will be printed also. I just want to print the result in search keyword.

Please see the attachment.
 

Attachments

  • Capture.PNG
    Capture.PNG
    12.5 KB · Views: 57

Frothingslosh

Premier Pale Stale Ale
Local time
Yesterday, 21:04
Joined
Oct 17, 2012
Messages
3,276
I would do the following:

Turn off form painting with Me.Painting = False
Hide the header with Me.FormHeader.Visible = False
Print the form
Restore the header with Me.FormHeader.Visible = True
Turn form painting back on with Me.Painting = True
 

RuralGuy

AWF VIP
Local time
Yesterday, 19:04
Joined
Jul 2, 2005
Messages
13,826
Create a report that does what you want rather than printing the Form which was not designed for printing.
 

Frothingslosh

Premier Pale Stale Ale
Local time
Yesterday, 21:04
Joined
Oct 17, 2012
Messages
3,276
You know, RG, every time I try to teach best practices instead of just answering the question asked, I wind up with a fight on my hands! :(
 

RuralGuy

AWF VIP
Local time
Yesterday, 19:04
Joined
Jul 2, 2005
Messages
13,826
Not with me I hope. I meant no disrespect Sir.
 

Frothingslosh

Premier Pale Stale Ale
Local time
Yesterday, 21:04
Joined
Oct 17, 2012
Messages
3,276
Nah, it's generally from the folks asking the question.
 

RuralGuy

AWF VIP
Local time
Yesterday, 19:04
Joined
Jul 2, 2005
Messages
13,826
I don't see it in this case. You just having a bad day?
 

Frothingslosh

Premier Pale Stale Ale
Local time
Yesterday, 21:04
Joined
Oct 17, 2012
Messages
3,276
I didn't say it happened here, I just said it's what usually happens when I try that. :p
 

RuralGuy

AWF VIP
Local time
Yesterday, 19:04
Joined
Jul 2, 2005
Messages
13,826
Got it. Happens to me as well and I simply quit assisting a recalcitrant poster.
 

Users who are viewing this thread

Top Bottom