Separate a List box (1 Viewer)

nate0057

Registered User.
Local time
Today, 08:53
Joined
Oct 4, 2012
Messages
74
Hi there,

I would like to separate my list box in two categories.
Indeed it is composed by 2 types of criteria but arranged in the same List box (I can't create another List box, it's forbidden).

Do you know how can I proceed?

I've thought to insert a dash but it has to appear all the time and I don't know if it's possible to do that.

I've also thought to enter a title IN the list box above each category but it has to appear all the time too..

FOR YOUR INFORMATION when I click on one item in the List box it becomes highlight.

May be code the 2 titles I could add for being always selected (highlight).
I don't want to have to select the 2 titles every time!!!

Could somebody help me?

Thanks a lot guys!
 

jdraw

Super Moderator
Staff member
Local time
Today, 11:53
Joined
Jan 23, 2006
Messages
15,385
??? Please post the related code with sample data. Or a copy of your database.
There is not enough info to advise in any detail.
Forbidden??
 

nate0057

Registered User.
Local time
Today, 08:53
Joined
Oct 4, 2012
Messages
74
??? Please post the related code with sample data. Or a copy of your database.
There is not enough info to advise in any detail.
Forbidden??

It's forbidden by my teacher!

And I don't think that you need to have a part of the code
In fact I would like to know if it's possible to separate a List Box!
You know I just want to know how!


This following code is about "when I click on one item in my list Box" (it becomes Highlight)

Code:
'search originals requirement's links and add requirement to a table for the report
Set rstREQ = CurrentDb.OpenRecordset("Requirement")
For Each varItem In Me.Reqlist.ItemsSelected
    rstREQ.AddNew
    rstREQ!RERQ = Me.Reqlist.ItemData(varItem)
    rstREQ.Update
    searchfile Me.Reqlist.ItemData(varItem)
Next varItem
rstREQ.Close
Form_Main_Input.Progbar.Value = Form_Main_Input.Progbar.Value + 1
'convert PPAPlinks field
StringToHyperlinks
 

Users who are viewing this thread

Top Bottom