Attached is a picture of a query I have. It returns the number of test days a program has used, stored in Days. I have a form, second attachment, where a user is able to select which program they want to lookup, this is shown in a form with comboBox dropdown. When the user selects which program they want a, graph, made from the query in the third attachment, appears, indicating some other information, and works just fine. I have another text box that is supposed to show the value in the query for total test days where the comboBox value selected earlier matches the appropriate program from the test days query. The code I'm using is below, however it does not indicate the correct value just
Its giving me "#Name?" in the text box instead of the days value.
Tips appreciated.
Code:
=DLookUp([Days],[qryTotalTestDaysPerProgram],"[programNumber] = '" & [Form]![cboProgramNumberReport] & "'")
Its giving me "#Name?" in the text box instead of the days value.
Tips appreciated.