There may be a better way to do it but I usually leave if statements out of my record selection. I would do something like:
{?Location}='VC1' and left({Location/DeviceName},3)='VC1'
or
{?Location}='VC2' and left({Location/DeviceName},3)='VC2'
or
{?Location}='ALL' and {Location/DeviceName}={Location/DeviceName}
or
{?Location}={Location/DeviceName}
Could be worth a try and I believe it will get you what you want, but there may be a cleaner way to write it.