Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress Meter on Forms

Status
Not open for further replies.

rccline

Technical User
Jun 13, 2002
341
US
I have a form with a With SubCommand that runs on a Click Event.

I want to place a ProgressMeter on my form and show the progress of the Click event.

(1) Can I run a Function from within a Sub_MyEvent_Click()?

The subevent will not run if I choose Option Explicit. Microsofts info on Progress meter is this:

Function Meter ()
Dim Progress_Amount As Integer, RetVal As Variant
MyTable.MoveLast
Count=MyTable.Recordcount
MyTable.MoveFirst
RetVal=sysCmd(1, "Reading Data...",Count)
For Progress_Amount=1 ToCount
RetVal=SysCmd(2, Progress_Amount)
Debug.PrintMyTabel[contactName]
MyTable.MoveNext
Next Progress_Amount
RetVal=sysCmd(3)
End Function

How do I integrate this with my SubEvent_Click()?

Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top