Now im trying to expand this by informing the user wich building manager is on holliday
You would be better to state your final objective rather than moving step by step
Code:
Dim Person as string
person=nz(DLookup("[BuildingManager]", "tblBuildingManager", "Date() between [HollidayFrom] and [HollidayTill]"),"")
if person<>"" Then
msgBox person & " is on holliday"
end if
Note you will need a completely different solution if more than one manager can be away at the same time and you need to list them