L
Leonard Priestley
I wanted to carry the current values of selected controls through to new
records. Storing the current data in the Default Value of the controls has
worked fine. Now I would like to clear all Default values by pressing one
command button.
I wanted to use code like:
Dim L As Control
For each L in Me.Controls
If L.Tag = "ThisOne" Then
L.DefaultValue = ""
End If
Next
But when I type a period after L, in the fourth line, I find the list that
is automatically displayed does not include any of the control's properties.
Can someone point me in the right direction?
By the way: not all of the controls are textboxes, two are checkboxes.
Also, I am writing this in Access 97.
Thanks,
Leonard Priestley
records. Storing the current data in the Default Value of the controls has
worked fine. Now I would like to clear all Default values by pressing one
command button.
I wanted to use code like:
Dim L As Control
For each L in Me.Controls
If L.Tag = "ThisOne" Then
L.DefaultValue = ""
End If
Next
But when I type a period after L, in the fourth line, I find the list that
is automatically displayed does not include any of the control's properties.
Can someone point me in the right direction?
By the way: not all of the controls are textboxes, two are checkboxes.
Also, I am writing this in Access 97.
Thanks,
Leonard Priestley