Referencing Form Controls from a Module

W

Wembly

Hi,

Is it possible to write routine that accesses form
controls from a module function?

E.g. This code sits in the Module

Public Function ControlActions(Level, Action)
....
With Forms![formName]
Select Case Action
Case "Lock"
For Each Ctrl In .Controls
Ctrl.Tag = Level & "Lockable"
Ctrl.Locked = True
Next Ctrl
Case "Unlock"
...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top