B
Brad
Thanks for taking the time to read my question.
How do I determine a controls number?
For example you could do:
dim x as integer
x = 0
For each control in Me
debug.print me.controls(x).tag
x=x+1
Next
This would iterate through all controls on the form and print out each ones
Tag value. Say I wanted to skip a specific control by using it's number.
so
dim x as integer
x = 0
For each control in Me
If x <> 2 then
debug.print me.controls(x).tag
x=x+1
End If
Next
If I had this in a function and wanted to pass a variable instead of always
skipping 2 but rather skip the number assigned to the variable.
Function Test (SkipThisOne as Integer)
dim x as integer
x = 0
For each control in Me
If x <> SkipThisOne then
debug.print me.controls(x).tag
x=x+1
End If
Next
End Function
How do I get the Index number of a control to pass to the function?
Thanks,
Brad
How do I determine a controls number?
For example you could do:
dim x as integer
x = 0
For each control in Me
debug.print me.controls(x).tag
x=x+1
Next
This would iterate through all controls on the form and print out each ones
Tag value. Say I wanted to skip a specific control by using it's number.
so
dim x as integer
x = 0
For each control in Me
If x <> 2 then
debug.print me.controls(x).tag
x=x+1
End If
Next
If I had this in a function and wanted to pass a variable instead of always
skipping 2 but rather skip the number assigned to the variable.
Function Test (SkipThisOne as Integer)
dim x as integer
x = 0
For each control in Me
If x <> SkipThisOne then
debug.print me.controls(x).tag
x=x+1
End If
Next
End Function
How do I get the Index number of a control to pass to the function?
Thanks,
Brad