I've tried setting the control source of a text box to get its values from a query by doing txtBuildingName.controlsource = "select tblbuildings.buildingfk, tblbuuldings.buildingname from tblbuildings where buildingfk = [txtBuildingID].
It's not working.
Basically, I need txtBuildingName to display the name of the building id which is stored in txtBuildingID. So if txtBuildingID is "1" and that is listed in tblbuildings as building "A" then "A" should show up in txtBuildingName.