i'm needing a little help. i have a form based on a job with a tab control. one of the tabs has a subform for the different hours by craft that the job will encounter. i have a text box called txttotalcrafthours on my main form to sum the hours of all the crafts associated with the job but i'm running into a compile error:sub or function not defined pointing to my "sum" of the dlookup. any ideals?
Code:
Dim x As Integer
x = SUM(DLookup("Hours", "workquecraftt", "WorkQueID= 'me.WorkQueID.value'"))
Me.txttotalcrafthours.Value = x