Unless you have spelt SPN_Traffic_Count incorrectly then the problem you have is that the code needs the control's (in this case a text box) NAME. You are using the name of the field that the text box is bound to which is shown in it's Control Source property.