Gemini532
asked on
How do I make something not equal to NULL in ASP
Hello Everyone, I really need code that makes a variables
dim onj
onj <> Null
in ASP(VBScript)
Can you help ?!?!
dim onj
onj <> Null
in ASP(VBScript)
Can you help ?!?!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I keep getting this:
The email is [] and it works YEY
The email is [] and it works YEY
ASKER
I thought it would work, so I added the YEY, but it doesn't OH WY NOT?
ASKER
I tried this:
if isnull(recordset.fields("P ointOfCont act").valu e) then
And I got this error:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/OPICForms/115/115-confirm _submit.as p, line 53
What coudl it be?
I figure I took the not
if NULL then the email is replaced by fake@fake.com
If not null then it's OK
so that's why altered the if statment from
if not isnull(recordset.fields("y ourfield") .value) then
to
if isnull(recordset.fields("y ourfield") .value) then
Is this correct?
if isnull(recordset.fields("P
And I got this error:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/OPICForms/115/115-confirm
What coudl it be?
I figure I took the not
if NULL then the email is replaced by fake@fake.com
If not null then it's OK
so that's why altered the if statment from
if not isnull(recordset.fields("y
to
if isnull(recordset.fields("y
Is this correct?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I got it! Thank you all for helping
ASKER
If IsEmpty(contactEmail) or (contactEmail = "") or (not isnull(contactEmail)) then
Open in new window