S
swas
Hi,
Is it possible to pass more than one value to a form property let statement?
For example, can I have a form with a property:
Property Let SetControl (srtA as string, strB as string)
'Code to process
End Property
If I only have a single parameter it works fine, but if I have two as shown
bombs when setting from code, eg:
Forms!frmWithProperty.SetControl = "ABCD", "DEFG" 'Doesn't work
Forms!frmWithProperty.SetControl ("ABCD", "DEFG") 'Doesn't work
Or does this need to be done with arrays?
Examples or advice appreciated.
swas
Is it possible to pass more than one value to a form property let statement?
For example, can I have a form with a property:
Property Let SetControl (srtA as string, strB as string)
'Code to process
End Property
If I only have a single parameter it works fine, but if I have two as shown
bombs when setting from code, eg:
Forms!frmWithProperty.SetControl = "ABCD", "DEFG" 'Doesn't work
Forms!frmWithProperty.SetControl ("ABCD", "DEFG") 'Doesn't work
Or does this need to be done with arrays?
Examples or advice appreciated.
swas