CF does not support the Line control nor does it support a Visible property.
With that being said, there are a couple of possible solutions.
1) Setup a TextBox control that is only a few pixels tall to simulate the
look of a horizontal Line. The control has the Border prop set to None. It
is the Backcolor of the control that is used to create the actual "Line".
When you setup the CF for this control, set the BackColor equal to the
current color of the Background of your form so that it effectively renders
itself Visible/Invisible as desired. Alternatively, you could fill a TextBox
with the underscore character and manipulate it's Text color using the same
logic as above.
2) Create two small "line" BMP's in MS Paint, one for a visible line the
other for a non visible line. Insert these BMP's into an OLE field as an
embedded object. Add the OLE field to your row source, selecting the desired
"line" record as desired.
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.