J
Jado
Hi
i'm trying to get some code to work in Access 97 that was writen for VB6.
I have found that the Listbox Methods and Properties in Access are quite
different to those in VB6.
i was wondering if anyone knows how to achive the equivilent results.
here's the VB6 code, lstFoundwords = myListBox
------------
Do While FuzzyStringSearch.FindNext(lngFindStart, lngFindLength, 1)
lstFoundwords.AddItem Mid$(txtSearchText, lngFindStart, lngFindLength)
lstFoundwords.ItemData(lstFoundwords.NewIndex) = MakeLong(lngFindStart,
lngFindLength)
Loop
------------
i think i can replace 'lstFoundwordsAddItem' with:
Me.lstFoundwords.RowSource = Me.lstFoundwords.RowSource & stuff
but i'm not sure how to handle:
lstFoundwords.ItemData( lstFoundwords.NewIndex)
If anyone has an idea, or of a good resource I'd appreciate it.
Thanks
Jado
i'm trying to get some code to work in Access 97 that was writen for VB6.
I have found that the Listbox Methods and Properties in Access are quite
different to those in VB6.
i was wondering if anyone knows how to achive the equivilent results.
here's the VB6 code, lstFoundwords = myListBox
------------
Do While FuzzyStringSearch.FindNext(lngFindStart, lngFindLength, 1)
lstFoundwords.AddItem Mid$(txtSearchText, lngFindStart, lngFindLength)
lstFoundwords.ItemData(lstFoundwords.NewIndex) = MakeLong(lngFindStart,
lngFindLength)
Loop
------------
i think i can replace 'lstFoundwordsAddItem' with:
Me.lstFoundwords.RowSource = Me.lstFoundwords.RowSource & stuff
but i'm not sure how to handle:
lstFoundwords.ItemData( lstFoundwords.NewIndex)
If anyone has an idea, or of a good resource I'd appreciate it.
Thanks
Jado