Dear Sir or Madame
I have a listbox on my form which is used to show "progress" and status messages.
However the listbox is not showing the updates while the VBA code is running but only afterwards (when XP got back the control).
In C/C++ I made a quick Sleep(10) to make it happend but how to do it in MS Access?
My code looks like this
Private Sub SetStatus(Txt As String)
StatusList.AddItem Txt
'Sleep(10) ' A C/C++ try but sleep is not recognized
End Sub
I also want the effect to show the last line in the Listbox, in C/C++ you "told" the listbox to "show" the bottom line
of the listbox by calculating which line, depending on the height of the listbox, should be shown on the top of the visible area.
How do I do this in VBA ?
I have a listbox on my form which is used to show "progress" and status messages.
However the listbox is not showing the updates while the VBA code is running but only afterwards (when XP got back the control).
In C/C++ I made a quick Sleep(10) to make it happend but how to do it in MS Access?
My code looks like this
Private Sub SetStatus(Txt As String)
StatusList.AddItem Txt
'Sleep(10) ' A C/C++ try but sleep is not recognized
End Sub
I also want the effect to show the last line in the Listbox, in C/C++ you "told" the listbox to "show" the bottom line
of the listbox by calculating which line, depending on the height of the listbox, should be shown on the top of the visible area.
How do I do this in VBA ?