Hi,
I'm having problems with VB SCript Sintax with using "Restrict" function.
I get the following script working fine....
Set myItems = oCurrentFolder.Items
Set myRestrictItems = myItems.Restrict ("[Op Title] = 'Fred'"
For Each myItem In myRestrictItems
myItem.Display
Next
But I want to replace 'Fred' with the value of a user defined field called "Customer".
I've tried all sorts of variations around...
Set oTitle = item.userproperties.find("Customer"
Set myRestrictItems = myItems.Restrict ("[Op Title] = oTitle"
What am I missing???
Thanks
I'm having problems with VB SCript Sintax with using "Restrict" function.
I get the following script working fine....
Set myItems = oCurrentFolder.Items
Set myRestrictItems = myItems.Restrict ("[Op Title] = 'Fred'"
For Each myItem In myRestrictItems
myItem.Display
Next
But I want to replace 'Fred' with the value of a user defined field called "Customer".
I've tried all sorts of variations around...
Set oTitle = item.userproperties.find("Customer"
Set myRestrictItems = myItems.Restrict ("[Op Title] = oTitle"
What am I missing???
Thanks