Have a project to do where they want me to return an aggregate value to a text box using execute scalar in a 3 layer application. I came up with a procedure/function that basically averaged a column from sqlserver and tried calling this method on the formload but no value was returned to the variable that was created to house the value from the function return. I am a beginner so not sure what I may be doing wrong. Any pointers or starters would be appreciated. Unfortunately, as it did not work I blew it away and saved my project then closed my IDE.