Thanks, but I am kind of confused. My function look like this
Maybe your backup is different with what you uploaded.
I downloaded MAJP FAYT V6.accdb again. Still the same errors as above.
Thanks, but I am kind of confused. My function look like this
Thanks for the Idea. I will combine the two classes into 1 so you can choose to find as you type (filter) or search as you type (no filter). I never really finished the search as you type class, thus the errors.I downloaded MAJP FAYT V6.accdb again. Still the same errors as above.
I cannot replicate your errors with the international characters. How are you testing is.
That info is out of date. The 64-bit Common Controls were released about two years ago with Office 365 Version 1707.
These Active X controls can be a pain to register. They are really temperamental. If you are distributing your application, I would say it is not worth it. You can download mscomctl.ocx from the web. Not sure if that is the name of the 64bit version. That is why a lot of us try to "roll our own" fake controls.mscomctl.ocx is an ActiveX Control module that contains common controls used by Windows, such as ImageCombo, ImageList, ListView, ProgressBar, Slider, StatusBar, TabStrip, ToolBar, and TreeView controls. mscomctl.ocx is a system process that is needed for your PC to work properly
What makes that different from a continuous form? what features would this listbox need that is not in a continuous form.I need a listbox where the value can be edited directly in the control.
Just ran a quick test & got an error
Move the first item to the bottom, then back again. Now move it to the bottom again. This triggered error 6015 - can't add the item. The index is too large.
Its late here and I'm about to log off so not investigated the cause of the error
Colin,
I have received this error in my main project once or twice when testing and was unsure exactly what the issue was because i couldn't reproduce it.
I have just tested again with your description and received the first time i tried, but every subsequent time after i couldn't reproduce the issue. If you can reproduce this consistently, please let me know and I will investigate.
Thanks
Tera,
Thanks for testing. I still cannot reproduce the issue. I even tried compact & repair with no chance of an error. Hmm.
See attached video.
2019 x64 Pro Plus
It's mine:
Unsure what you mean
It is likely mine based on where it is. The trick is to always add to the list before deleting from the list (most times). My guess without looking is in that event add something to add to the end if greater than the listcount - 1.As Tera showed, error in AddItem procedure. Don't know if that's your code or MajP's
It is likely mine based on where it is. The trick is to always add to the list before deleting from the list (most times). My guess without looking is in that event add something to add to the end if greater than the listcount - 1.
if ind > me.listbox.listcount - 1 then
ind = me.listbox.listcount - 1
end if
if ind > me.listbox.listcount - 1 then
ind = me.listbox.listcount - 1
end if
Public Sub addItem(ind As Long, val As String)
If ind > Me.ListBox.ListCount Then
ind = Me.ListBox.ListCount
End If
Me.ListBox.addItem val, ind
End Sub
I also added error handling to that sub
I no longer get the previous error. However after dragging/dropping a few times I now get error 3021 - no current record - in UpdateRecordset.
I added error handling to manage that error AND abracadabra ... after repeated testing I think it now works without further issues (famous last words)