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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automation type not supported in Visual Basic

Status
Not open for further replies.

JBG

Programmer
Oct 22, 2001
99
US
I am using a Listview control in my Access 97 database. I have a routine (called by the column click event) that will sort a column of non-string values. Here is the header of the routine that is giving me the error:

Code:
Public Sub ListViewSortOnNonStringField(LV As ListView, ByVal ColumnIndex As Integer, _
            Optional SortOrder As MSComctlLib.ListSortOrderConstants, Optional IsDateValue As Boolean)

The error I get when I try to save my work is:

"Compile error: Automation type not supported in Visual Basic"

The error is on MSComctlLib.ListSortOrderConstants.

I do have Access 2000 installed on my machine, and after sonme reading, I did re-register the DAO350.dll.

However, I still get the error.

Anyone know how I can use MSComctlLib.ListSortOrderConstants in my Access 97 db?

Thanks,

JBG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top