Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView Control Intellisense not working in Access 2003

Status
Not open for further replies.

dpimental

Programmer
Jul 23, 2002
535
US
All, I have the referemce checked "Microsoft Windows Common Controls 6.0 (SP6). And I can Declare a new ListView Control or a ColumnHeaders object. But my intellisense doesn't appear to be working for this.

I can't seem to access objects beneath the ListView control, such as the ColumnHeader, not by intellisense.

Is it because this is not a native access control?

(I have also checked the ActiveX Data Objects 2.1, Visual Basic for Applications, Microsoft Access 11.0 Object Library, Microsoft DAO 3.6 Object Library, OLE Automation and Microsoft Scripting Runtime. Are any of these in conflict with each other or the one that the listview control needs?)



David Pimental
(US, Oh)
 
You need to work with the controls object property:

Public Sub WorkWithListView()
On Error GoTo Err_WorkWithListView
Dim lvwObject As MSComctlLib.ListView

Set lvwObject = lvwControl.Object
...


Exit_WorkWithListView:
Exit Property

Err_WorkWithListView:
MsgBox "WorkWithListView Error: " & Err.Number & ": " & Err.Description
Resume Exit_WorkWithListView
End Property
 
I can't believe I missed that!

Thanks IanAble!

That's extremely helpful.


David Pimental
(US, Oh)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top