S
Sharkbyte
In searching through the archives, I came upon a code snippet, which I find
very useful. It is from Arvin Meyer, and essentially resets a form.
For Each ctl In Me.Controls
With ctl
If .ControlType = acTextBox Then
.Enabled = True
.Value = ""
End If
End With
Next
What I want to do is load this into a shared function, so I only need call
the function, rather than adding the several lines of code, each time I wish
to use it.
Can someone help me with this? Access keeps giving me problems with the
"Me." keyword. But I can't see how to replace either the "Me." or
"Me.Controls", and have it work as a function.
TIA.
Sharkbyte
very useful. It is from Arvin Meyer, and essentially resets a form.
For Each ctl In Me.Controls
With ctl
If .ControlType = acTextBox Then
.Enabled = True
.Value = ""
End If
End With
Next
What I want to do is load this into a shared function, so I only need call
the function, rather than adding the several lines of code, each time I wish
to use it.
Can someone help me with this? Access keeps giving me problems with the
"Me." keyword. But I can't see how to replace either the "Me." or
"Me.Controls", and have it work as a function.
TIA.
Sharkbyte