Actually, I have just discoverred that DCount isn't working with all records. When I debugged, I found out that for some records the Me!PhaseID is Null although the control on the form is displaying a Phase ID. I had that field locked, I unlocked it because I thought that what was causing this issue, but it did not help. Weird that it only works with some of them. Any ideas?