I am revisting Access after decades. Once knew my way around but having to relearn
I have a query QryHoursByType that pulls info from two tables
From table Members it gets Member Name, from table Membership Type it gets [Member Type] and [Allocated Hours]
I wish to use a DLookup on a form to retrieve the [Allocated Hours] from the query with the criteria set by a combobox on the form
One selects Member in Combo159 on a form called Tracker which requeries the subform and does some calculations.
The DLookup is in the Allocated Hours text box at the bottom and is supposed to look up the number of allocated hours found in the query.
I have
=DLookUp("[Allocated Hours]","QryHoursByType","[Member Name]=" & [Forms]![Tracker]![Combo159])
But this returns an error. Not sure where I am going wrong.