Este codigo lo tengo en otro form:
Código:
Private Sub Command1_Click()
If LeerRegistro(Text1) = vbNullString Then
MsgBox "Necesitas crear una contraseña", vbInformation
Else
MsgBox "Pc Protegido :)", vbInformation
FrmPrincipal.Visible = False
FrmIntroducDatos.Visible = True
End If
End Sub
Y me salta el error variable not defined