How to make a strickthrough button

  • Thread starter Thread starter mustangric2001
  • Start date Start date
M

mustangric2001

I have a yes/no box on a form that I would like to make it put a strick
through that record when clicked on, is this possible, if so how, if not is
there a way to make a button that will do it.
 
You can use the line control to draw a diagonal line across the form, setting
the line's width and color to suit you. Set the line's default value as
Visible = False.

Then for both the form's On Current event and the checkbox AfterUpdate put
some code like this:

If CheckBox Then
myLine.Visible = True

Else
myLine.Visible = False

End If
 
What's the purpose of doing the strikethrough?

You might be better off changing the .Enabled property to false given that
it would cause the appearance to be more consistent with Windows applications.
 
Back
Top