How to draw a line every 5 lines

T

Tony Botelho

You can use a simple IF statement to see if the CountThem
is evenly divisible by 5

If Me!CountThem / 5 = Me!CountThem \ 5 Then
Me.Line54.Visible = -1
Else
Me.Line54.Visible = 0
End If

The "/" performs standard division. The "\" operator
returns only the whole number portion of the result (no
remainder, or decimals).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top