You can try
If frmOther.ListBox1.Items.Contains(txtMasked.Text) Then
'login OK
Else
MsgBox("name not found")
End If
Assuming your other form is called frmOther, etc.
Reverend Jim
Illigitimae non carborundum
3,740 posts since Aug 2010
Reputation Points: 585
Solved Threads: 469
Skill Endorsements: 33