Someone please assist..Cant get this to work right....I keep getting the first value in the query and not the filtered value.
Code:
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("Qry_Availability", dbOpenSnapshot, dbReadOnly)
rs.Filter = "[date_selected] = '" & Me.Sig1 & "'"
Me.I1 = rs.Fields("Occurance").Value
If rs.NoMatch Then
Me.I1.BackColor = vbGreen
Exit Sub
Else: Me.I1.BackColor = vbRed
End If
Last edited by a moderator: