hi this is probably simple, but i can't figure it.

How do i make a button only enabled when all 4 of my text boxes have something written in them.

ay the mo i am trying:

command1.enabled=false

if text1.datachanged=true & text2.datachanged=true & _
text3.datachanged=true & text4.datachanged=true then
command1.enabled=true
endif

But it don't work

please help.