davesmith202
Employee of Access World
- Local time
- Today, 22:29
- Joined
- Jul 20, 2001
- Messages
- 522
I have a loop where I cycle through a recordset:
What I need is some code that says If the City field in the previous record is the same as this one, then msgbox "Same City". i.e. as it cycles through, it checks the current record-1.
Make sense? Any ideas?
Thanks,
Dave
Code:
rs.MoveFirst
Do While Not rs.EOF
rs.MoveNext
Loop
What I need is some code that says If the City field in the previous record is the same as this one, then msgbox "Same City". i.e. as it cycles through, it checks the current record-1.
Make sense? Any ideas?
Thanks,
Dave