how will I print the form not including the command buttons??????
also how will I put a picture into a command button? I try to use the Picture property but it doesnt work.. please help.. thanks...
Printable View
how will I print the form not including the command buttons??????
also how will I put a picture into a command button? I try to use the Picture property but it doesnt work.. please help.. thanks...
set the style property of the command button to graphical
on orint hide the controls
Moved to ClassicVbVB Code:
Private Sub HideUnHideButtons(pblnVisible As Boolean) Dim ctrl As Control For Each ctrl In Me.Controls If TypeOf ctrl Is CommandButton Then ctrl.Visible = pblnVisible End If Next End Sub Private Sub cmdPrintForm_Click() HideUnHideButtons False Me.PrintForm HideUnHideButtons True End If