Hi Perry.
There's one problem. I don't use recorset connection type. I use
control
source.
The code I wrote, that was on garny site, it looks good, I just don't
know
where to use.
Marco
:
Add two labels to yr form
Label1 (progress front backcolor: some blue)
Label2 (progress backcolor: white; width according to yr design)
(position Label1 inside Label2)
whereby [rs] is an instantiated recordset object variable.
Dim iMax as integer, iCnt as integer
iCnt =1
iMax = rs.RecordCount
Do Until rs.EOF
'Do some stuff with records
Me.Label1.width = me.Label2.width * (iCnt / iMax)
me.Repaint
rs.MoveNext
Loop
Krgrds,
Perry
"Marco" <
[email protected]> schreef in bericht
Hi. How can I insert a simple progress bar in my form. I have a form
that
takes a lot to load, and I would like to put a progress bar so users
could
see that the form is loading and the computer is not stopped.
Any idea how to do this?
Regards,
Marco