Solved

ListBox doesn't show grids

Posted on 2012-12-27
11
237 Views
Last Modified: 2013-01-23
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???
0
Comment
Question by:sharpapproach
11 Comments
 
LVL 26

Expert Comment

by:jerryb30
ID: 38724612
Screenshot?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38724697
Listboxes do not display gridlines.

Sorry...
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 38724724
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.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38724795
<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
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38724816
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
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 38724831
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.
0
 

Author Comment

by:sharpapproach
ID: 38724868
sorry.... here is a screenshot
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 38724908
screenshot?
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 38725023
<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. >
Great alternative...

fyed, I'll leave this to you now...
;-)

Jeff
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 38725045
Jeff,  Have a Happy New Year.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38725075
Thanks,

You too, ... and be safe
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now