Private Sub cmdMaintainRemove_Click()
Dim current As String
current = cboMaintainList.[b]list(cboMaintainList.listindex)[/b]
i = o
If check = True Then
rstPersonTitle.MoveFirst
Do [b]until rstPersonTitle.EOF[/b]
If rstPersonTitle.GetString = current Then
rstPersonTitle.Delete
[b]else
debug.print "[COLOR=red]'[/color]"rstPersonTitle.GetString & "[COLOR=red]' '[/color]" & current & "[COLOR=red]'[/color]"[/b]
End If
[b]rstPersonTitle.movenext[/b]
Loop
End If
If check = False Then
rstWorkTitle.MoveFirst
Do While i < rstWorkTitle.RecordCount
If rstWorkTitle.GetString = current Then
rstWorkTitle.Delete
End If
Loop
End If
End Sub
Take Care
Matt
If at first you don't succeed, skydiving is not for you.