I have another mystery. I have a listbox, and the users want to have grid lines between the records. Here is a screenshot of the list box, and the properties box. I have the Gridlines all set to Solid. Why aren't I seeing them???
Microsoft Access
Last Comment
Jeffrey Coachman
8/22/2022 - Mon
jerryb30
Screenshot?
Jeffrey Coachman
Listboxes do not display gridlines.
Sorry...
Dale Fye
It's strange, but I've never figured out why the listbox control has GridLine properties, because values in those properties don't seem to accomplish anything.
If you need lines between the records of a listbox, consider creating a continuous subform and using it instead.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Jeffrey Coachman
<It's strange, but I've never figured out why the listbox control has GridLine properties, because values in those properties don't seem to accomplish anything.>
Same here.
My guess is that "GridlineStyle/GridlineWidth"
1. Mean something that we have yet to figure out...?
2. Meant something "in the old days", and is only still around for compatibility?
3. Are a cruel joke...?
Googling now for any insight...
Jeff
Jeffrey Coachman
sharpapproach ,
Go with fyed's solution if the listbox is for display purposes only.
But if it is needed to make multiple (possibly non-contiguous) selections, then you may be stuck here.
You could research using a 'GridView' VB control though...
But this will require an active x control to be installed on each machine, and will be a "challenge" to program things like multiple selections.
JeffCoachman
Dale Fye
If you need to make multiple selections, consider adding a field (IsSelected) with a Yes/No datatype to the table that is used for the selections. Then you can add a checkbox to the continuous subform for selecting multiple, non-contiguous values.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst