I am trying to put code which checks if a combo box on a form is empty and if so puts the value from another field into it. the combo box in question has 2 columns (the bound column is the id field (auto number) and the other is the name field) the code I have is if isnull (me.cboallocatedto) then .....
and it is on the after update event of another combo box. It works fine if I clear the contents of the cboallocated field and then update the field with the code on it but when i try it on a new record where the cboallocated field is blank it doesn't work. I've stepped through the code and it seems it doesn't think it is null.
Can anyone help spot what I'm doing wrong??
and it is on the after update event of another combo box. It works fine if I clear the contents of the cboallocated field and then update the field with the code on it but when i try it on a new record where the cboallocated field is blank it doesn't work. I've stepped through the code and it seems it doesn't think it is null.
Can anyone help spot what I'm doing wrong??