ListItem Compile Error
Hey guys wondering if you could help me with a compile error?
Option Explicit
Dim db As Database
Dim rs As Recordset
Dim lstmain1 As ListItem <-- Error
Dim lstmain2 As ListItem
Dim clmhead1 As ColumnHeader
Dim clmhead2 As ColumnHeader
The Dim lstmain1 as ListItem always returns this error.
Compile Error:
User-Defined type not defined
And I cant figure out why any help would be great
[447 byte] By [
Force] at [2007-11-11 10:29:04]

# 1 Re: ListItem Compile Error
did you add a reference to the mscomctl.ocx (Microsoft Windows Common Controls 6.0) to your preject? Just press Ctrl+T and check its box from the list
mstraf at 2007-11-11 17:22:41 >

# 2 Re: ListItem Compile Error
Awesome, that fixed it perfect. Is there a website that has all the references listed and what they do?
Thanks again
Force at 2007-11-11 17:23:41 >

# 3 Re: ListItem Compile Error
The "references" depend on what you have installed in your computer
The standard controls are listed here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconusingvisualbasicsstandardcontrols.asp
mstraf at 2007-11-11 17:24:36 >
