G Guest Feb 2, 2006 #1 What do I make of the error, when Access doesn't appear to recognize the ".additem"? Do I use ItemSelected somehow?
What do I make of the error, when Access doesn't appear to recognize the ".additem"? Do I use ItemSelected somehow?
G Guest Feb 3, 2006 #3 It's as simple as this: Dim V As Variant Dim I As Integer Dim Fname As String Dim F V = GetFiles If Not IsEmpty(V) Then For I = 0 To UBound(V) Fname = StrReverse(Split(StrReverse(V(I)), "\", 2)(0)) LstXlsFiles.AddItem Item:=Fname Next I End If It works on my machine as is always the case, and bombs on others. Thanks.
It's as simple as this: Dim V As Variant Dim I As Integer Dim Fname As String Dim F V = GetFiles If Not IsEmpty(V) Then For I = 0 To UBound(V) Fname = StrReverse(Split(StrReverse(V(I)), "\", 2)(0)) LstXlsFiles.AddItem Item:=Fname Next I End If It works on my machine as is always the case, and bombs on others. Thanks.
A Alex Dybenko Feb 4, 2006 #4 Hi, and what error do you get? Do you have same access version on both PCs?
G Guest Feb 6, 2006 #5 Yes, I have 2002, meaning versions 2000 and earlier do not have additem and cannot read this. I have read that there is no workaround this. If I cannot use the additem, how am I to get data into the listboxes?
Yes, I have 2002, meaning versions 2000 and earlier do not have additem and cannot read this. I have read that there is no workaround this. If I cannot use the additem, how am I to get data into the listboxes?
A Alex Dybenko Feb 7, 2006 #6 Hi, you can use this code: http://alexdyb.blogspot.com/2005/11/additem-and-removeitem-for-listboxes.html for me it works fine in any access version
Hi, you can use this code: http://alexdyb.blogspot.com/2005/11/additem-and-removeitem-for-listboxes.html for me it works fine in any access version