MS FlexGrid Checkbox and MS Access

Alright heres an interesting question...

I'm using Microsoft Access 2000 and I'm using an MSFLex Grid control to display some records.  I've got the code working for that and now I'm trying to show a check box when the user double clicks on a row.  Sounds simple enough right?

I've found the code for VB to set the .CellPicture property but it doesn't seem to be working in MS Access VBA.  

Here's some sample code to populate the FlexGrid:

Public Sub PopulateCells()

Dim i As Integer

    flxItems.Rows = 10
    flxItems.Cols = 2
    flxItems.FixedRows = 1
    flxItems.FixedCols = 1
    flxItems.TextMatrix(0, 1) = "Item"

    flxItems.Clear
    For i = 1 To 10
        flxItems.Row = i - 1
        flxItems.col = 0
        Set flxItems.CellPicture = picChecked.Picture
        flxItems.TextMatrix(i - 1, 1) = "Item " & Format$(i _
            - 1)
    Next i

End Sub

Then when a user double clicks on a cell, I'm using

Set flxItems.CellPicture = picChecked.Picture

Where picChecked is just an Image that I've placed on my form.  When I double click on a cell I get Error 424, Object Required, and the above line of code is highlighted.  

Any ideas?
LVL 2
jg0069_2002Asked:
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.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Try this:

Set flxItems.Object.CellPicture = picChecked.Picture

Also, you may find that this Method isn't supported in Access ... many ActiveX controls are only partially supported.
0
jg0069_2002Author Commented:
LSMConsulting,

Thanks for the comment, but using the above code I still the "Object Required" error message.  

Any other ideas?
0
moduloCommented:
PAQed with points refunded (125)

modulo
Community Support Moderator
0

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
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
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.