data-bound grid with selectable column

I'm currently working on an application (VB6) that uses an Access database for its data. I have tried and tried to be able to have a selecteble column in a Flex Grid and Hierarchial Flex Grid, but have not been successful.

The basic idea is that i can select the first column of a row from the flexgrid. and the flexgrid will put a tick or leave it unticked (True/False type thing), furthermore i need it to be able to change the underlying Access database field (which is a true/false field), either by code or not.
From the selected (ticked) rows i call some reports from the database and display them to the user (this part fine, can do this)

So does anyone know of a way of doing this? or is there a different control that can handle this.
btw i've tried CoolFlex, which works to an extent however would rather a data-bound version.

Thanks in advance for your assistance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you got to use ListView control...
inside "mirosoft common control 6.0" then code will like below:
'Below are code to load data,Modify to suite your code.Pls wait for "update" code...
'Remember to reference microsoft ActiveX data Object 2.7 library...

Private Sub Form_Load()
    Listld.Checkboxes = True
    Call LoadChk
End Sub

Private Sub LoadChk()
On Error GoTo ErrFound
Dim G, H As Integer
Dim item As ListItem
Dim CnnList As ADODB.Connection
Dim RsList As ADODB.Recordset
Dim StrSql, StrCnn, SQL As String
    StrCnn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\ZDbGridTest\test1.mdb;User Id=admin;Password=;"

    StrSql = "Select * from yourTable"
       Set CnnList = New ADODB.Connection
       CnnList.CursorLocation = adUseClient
       CnnList.Open StrCnn

        Set RsList = New ADODB.Recordset
        RsList.CursorType = adOpenStatic
        RsList.CursorLocation = adUseClient
        RsList.LockType = adLockOptimistic
        RsList.ActiveConnection = CnnList
        RsList.Open StrSql

Listld.View = lvwReport

For H = 0 To RsList.Fields.Count - 1
    Listld.ColumnHeaders.Add , , RsList.Fields(H).Name
    Debug.Print RsList.Fields(H).Name

While Not RsList.EOF
Set item = Me.Listld.ListItems.Add(, , RsList.Fields(0))
    For G = 1 To RsList.Fields.Count - 1
    item.SubItems(G) = RsList.Fields(G) & " "

Set RsList = Nothing

Set CnnList = Nothing

Exit Sub
MsgBox "Error Source : " & Err.Source & "; Error description : " & Err.Description, vbCritical, Err.Number
End Sub

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

gumbyssAuthor Commented:
Have created a 'test' project and so far so good, look to be the way i want it.  
So thanks for that

As requested i will wait for the update code....

Really big thanks so far :D
'sorry,my wingate server have little problem...
'Please move 2 line of code to form general section:
'Dim CnnList As ADODB.Connection
'Dim RsList As ADODB.Recordset
'Please move 4 line of code to form_unload()
'Set RsList = Nothing
'Set CnnList = Nothing

Private Sub Command1_Click()
Dim i As Long
i = 0

'Debug.Print "Index : " & Listld.ListItems.Count
For i = 1 To Listld.ListItems.Count
'Debug.Print "----------------------------------------"
    Listld.ListItems.item(i).Selected = True
    If Listld.ListItems.item(i).Checked = True Then
        'Debug.Print "Checked = TRUE"
        RsList.Fields("student").Value = 1
        'Debug.Print "NOT CHECKED"
        RsList.Fields("student").Value = 0
    End If
Next i

End Sub
Lastly,Please post your result...
gumbyssAuthor Commented:
Again Thanks for all you help...i've been able to adapt it to suit what i required. was a vary detailed answer.  So A big thanks

You should have already gotten the 500 points :D
q(^ _ ^)p
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.