Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Looping through Controls in a Dynamics SL Form

(0) ShareShare
ReportReport
Posted on by 340

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

*This post is locked for comments

  • Edward McGovern Profile Picture
    340 on at
    RE: Looping through Controls in a Dynamics SL Form

    Barry,  

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

  • Verified answer
    Barry Flynn Profile Picture
    3,090 on at
    RE: Looping through Controls in a Dynamics SL Form

    Have you looked at the mFindControlName API call?

    Barry

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

#1
Community Member Profile Picture

Community Member 136

#2
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 102 Super User 2025 Season 1

#3
REUser Profile Picture

REUser 8

Featured topics

Product updates

Dynamics 365 release plans