Looping through Controls in a Dynamics SL Form

This question is answered

How do I loop through the controls on a form using VBA

something like:

dim ctl as Control

for each ctl in Me.Cotrols

Next

problem is there is no Control Collection accessible in SL VBA that I see.

Thanks

Verified Answer
All Replies
  • Have you looked at the mFindControlName API call?

    Barry

  • Barry,  

          Thanks!  mFindControlName(1) returns name of first control and mFindControlName(0) returns the "next" control. All I need to loop.