Hi All,
In my database, I have a continuous form with a Name, a Date and a Yes/No field.
When the form opens, I want to look at the date of every record on the form and show a message box if it is before the current day.
The code I have is this;
However, it loops just the first record the amount of times there is of records (ie, it will only show the first person's name in the message box, and will show 3 times if there are 3 records).
What exactly am I doing wrong here?
Thanks for any help!
In my database, I have a continuous form with a Name, a Date and a Yes/No field.
When the form opens, I want to look at the date of every record on the form and show a message box if it is before the current day.
The code I have is this;
Code:
Private Sub Form_Load()
With Me.RecordsetClone
While Not .EOF
If Me.Date1 < Date Then
MsgBox "" & Me.Person & ""
End If
If Not .EOF Then .MoveNext
Wend
End With
End Sub
However, it loops just the first record the amount of times there is of records (ie, it will only show the first person's name in the message box, and will show 3 times if there are 3 records).
What exactly am I doing wrong here?
Thanks for any help!