control default value

S

Sam

When writing functions with optional input values, if nothing is specified
for a long integer, for example, the default value is 0. What is the default
value if the input variable is a control or form?

THanks,
Sam
 
M

Marshall Barton

Sam said:
When writing functions with optional input values, if nothing is specified
for a long integer, for example, the default value is 0. What is the default
value if the input variable is a control or form?


Unspecified optional object arguments are Nothing. You can
check for the situation using the Is operator:

If objectarg Is Nothing Then
 
Top