test is out using NULL and if that doesn't work, try replacing NULL with '' but yes... you are on teh right track. i have about as much programming exp as you so i'm just recommending things that i've done in the past.