This is what I wrote.
And in my querysection, I have query called "testDate1MonthNotice" And within this query, there is 3 field retrieving. SchoolName, P-ID, and TestDate.
I get erroe in here saying that "Item not found in this collection"
With rst.Fields(SchoolName).Value
==============================================
Dim db As DAO.Database, rst As DAO.Recordset
Dim i As Integer
Dim variable As String
Dim msg As String
Set db = CurrentDb
Set rst = db.OpenRecordset("testDate1MonthNotice"

With rst.Fields(SchoolName).Value
If rst.RecordCount <> 0 Then
rst.MoveLast
rst.MoveFirst
For i = 0 To rst.RecordCount
variable = rst!SchoolName
rst.MoveNext
Next i
End If
If variable <> "" Then
MsgBox "hi", vbOKOnly, "Message Title"
End If
End With