GT_engineer
Registered User.
- Local time
- Today, 08:52
- Joined
- Aug 23, 2012
- Messages
- 85
I have a record set of drawings (DWGNo) and their revisions (REVNo). I want to create a short list that only contains the latest revisions. I tried "recset.Delete" but I believe that deletes the whole record set. Is there a way to delete the current record. Also, does that move lower records up to the next slot?? I need to make sure my MoveNext and Move Previous are correct.
Code:
Drawing=""
Rev=""
While recset.EOF = False
'Look for duplicates and remove lower revisions
If recset!DWGNo = Drawing Then
If recset!REVNo > Rev Then
recset.MovePrevious
recset.Delete
recset.MoveNext
Else
recset.Delete
End If
Else
Drawing = recset!DWGNo
Rev = recset!REVNo
recset.MoveNext
End If
Wend