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

listview control

Status
Not open for further replies.

shandad

Programmer
Feb 20, 2002
3
GB
Hi, can any one point me in the right direction with this

I use the following code to add items to a listview control
and it works fine using M/S common controls 5
but when i use it on common controls 6 I get type mismatch error

Set itm = lstvLoans.ListItems.Add(, , StripNulls(RSs!AccountNumber, ","))


Thanks
 
Prefix the item's key with a non-numeric character. Even if you use Cstr() on a numeric key, it won't be interpreted as a string.

Set itm = lstvLoans.ListItems.Add(, , "X" & StripNulls(RSs!AccountNumber, ","))

Paul Bent
Northwind IT Systems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top