Probably could be done. So in a button click event, follow this logic:
1. set color property of all rectangles to default. This is needed if you allow multiple searches and want the display reset for each search. In other words, search for Smith, form stays open, now reset and Search for Jones. If you don't reset then both rectangles will be colored.
2. Loop code to process all selected records and highlight relevant rectangle.
Rough code example. Presumes a recordset filtered to only records meeting search criteria.
Code:
Private Sub btnHighlightRectangles_Click()
Dim cn As ADODB.Connection
Dim rs As DAO.Recordset
Dim n As Integer
Set cn = CurrentProject.Connection
Set rs = Me.ctrEmplList.Form.RecordsetClone
'code to set rectangles to default backcolor; name the rectangles similar like rec1, rec2, etc
For n = 1 to total number of controls here
Me.Controls("Rec" & i).BackColor = vbWhite
Next
'alternate code using Controls collection
'not tested and not sure of syntax
'required if rectangle name includes room number
Dim c As Control
For Each c In Me.Controls
If c.Name Like "rec*" Then c.BackColor = vbWhite
Next
'code to read each record of filtered recordset and set color of rectangle
rs.MoveFirst
While Not rs.EOF
Select Case rs!RoomNo
Case 111A
Me.rec1.BackColor = vbGreen
'continue for other rooms
End Select
rs.MoveNext
'alternate to the Select Case if rectangle names follow room number structure
Me.Controls("rec" & rs!RoomNo).BackColor = vbGreen
Wend
End Sub