M
ManningFan
Is it faster to do something like:
If Forms![formname]![subformname]![control] = "W" or Forms![formname]!
[subformname]![control] = "X" or Forms![formname]![subformname]!
[control] = "Y" or Forms![formname]![subformname]![control] = "Z" Then
... Perform Some Code
Else
Endif
or is it faster do do:
strForm = Forms![formname]![subformname]![control]
If strForm = "W" or strForm = "X" or strForm = "Y" or strForm = "Z"
Then
... Perform Some Code
Else
Endif
I'm trying to figure out which requires less processing, or if they're
both the same. Any help is appreciated!
If Forms![formname]![subformname]![control] = "W" or Forms![formname]!
[subformname]![control] = "X" or Forms![formname]![subformname]!
[control] = "Y" or Forms![formname]![subformname]![control] = "Z" Then
... Perform Some Code
Else
Endif
or is it faster do do:
strForm = Forms![formname]![subformname]![control]
If strForm = "W" or strForm = "X" or strForm = "Y" or strForm = "Z"
Then
... Perform Some Code
Else
Endif
I'm trying to figure out which requires less processing, or if they're
both the same. Any help is appreciated!