B
Bobby
Hello,
Can you pass a property as a parameter to a function? I want to do
something like this:
Private Sub testpropertyparam(toSet As Property)
'toSet = "something"
End Sub
And, its important that the property Let (or Get) is called.
Also, I'm having trouble setting an access field by parameter:
ex:
Private Sub testbyparam(toSet As AccessField)
' do something
End Sub
' some misc. code
Dim tmp As AccessField
Set tmp = Me.MailingAddressRef
testbyparam (tmp) ' ERROR: Object required
Thanks!
Can you pass a property as a parameter to a function? I want to do
something like this:
Private Sub testpropertyparam(toSet As Property)
'toSet = "something"
End Sub
And, its important that the property Let (or Get) is called.
Also, I'm having trouble setting an access field by parameter:
ex:
Private Sub testbyparam(toSet As AccessField)
' do something
End Sub
' some misc. code
Dim tmp As AccessField
Set tmp = Me.MailingAddressRef
testbyparam (tmp) ' ERROR: Object required
Thanks!