Hi all,
I'm trying to put together an ASP check to make sure that a set of variables contain the correct data before proceeding.
I have three data variables, (v1, v2 and v3), and I want make sure that v1 and v2 contain data if v3 does.
I have tried the following:
but this didn't work, (Type mismatch) so I tried:
but this errored also.
The variables contain peoples names, but I can not get it to give me the result I'm after.
Any ideas most welcomed.
Thanks,
Barry
ICT Network Administrator
IT Services Manager
I'm trying to put together an ASP check to make sure that a set of variables contain the correct data before proceeding.
I have three data variables, (v1, v2 and v3), and I want make sure that v1 and v2 contain data if v3 does.
I have tried the following:
Code:
if v1 or v2 = "" and v3 <> "" then
Code:
If v1 or v2 = Null and v3 <> Null then
The variables contain peoples names, but I can not get it to give me the result I'm after.
Any ideas most welcomed.
Thanks,
Barry
ICT Network Administrator
IT Services Manager