You need to sign in to do that
Don't have an account?

How do you assign a date? Unexpected token 'birthdate'
trigger Contact1i on Contact (before insert) {
for( Contact c : Trigger.new )
{
if( c.birthdate = null)
{
c.birthdate = 1968-09-09;
}
update c;
}
}
in ur statement:
if( c.birthdate = null)
i sense that u are comparingtwo values, so in place of = you have to put ==
this mite be the reason that u r getting error..
regards,
All Answers
in ur statement:
if( c.birthdate = null)
i sense that u are comparingtwo values, so in place of = you have to put ==
this mite be the reason that u r getting error..
regards,