Hi,

The error highlights in yellow
Private Sub CommandButton1_Click()
but also highlights in blue
.txtUsernameIn
Would it maybe be easier if i attached my file ?

thank you for your help !