it say txtPassword not declared, fromMain not declared, frmLogIn not declared,etc
there are my code -
Private Sub cmdEnter_Click()
If txtPassword = "lavender" Then
MsgBox "Welcome to Lavender Book Rental system", vbvOkOnly + vbInformation, "Welcome"
frmMain.Show
frmLogIn.Hide
txtPassword = ""
Else
MsgBox "Please enter the correct password", vbOKOnly + vbExclamation, "Sorry!"
txtPassword = ""
txtPassword.SetFocus
End If
End Sub
Private Sub Form_Load()
lblDateToday = Format(Now, "dddd, dd mmmm yyyy")
lblTime = Format(Now, "hh:mm")
End Sub