i have tried everything and cannot get this to work. what i am looking to do is check all the items in the listview (subitem(1)) to see if a certain text string exists. if the string exists, then to not allow the closing of the app.

this is what i have, any idea?

i am getting argument not optional on highlighted.
VB Code:
  1. Private Sub mnuFileMenuExit_Click()
  2.     If lvwUserPunchedOut.ListItems[hl].Item[/hl] = "N/A - New Employee" Then
  3.         MsgBox "You cannot close " & Me.Caption & vbNewLine & _
  4.                "because some users have never punched in or out yet.", _
  5.                vbExclamation, "New Users Present."
  6.         Exit Sub
  7.     Else
  8.         Unload Me
  9.     End If
  10. End Sub