S
Sophy
Guest
here is the code i did, but its not working
If IsNull(DLookup("[SecurityPassword]", "TableSecurity", "[SecurityPassword] ='" & PW & "'")) Then
MsgBox "The password you typed is incorrect"
ElseIf IsNull(DLookup("[SecurityFormSiteInformationModify]", "TableSecurity", "[SecurityFormSiteInformationModify] = -1")) Then
MsgBox "You don't have permission to modify"
Else
MsgBox "You can now do the modifications"
SiteName.Locked = False
end if
-----------------------------------------------------------
Maybe this is not in a good section, but i would like to know, when you have a boolean value(yes/no) in a table, how do you write it in the code because the line elsif doesnt work, it always gives me the message"you don't have permission to modify", even if the checkbox in my table is checked.
Thanks
If IsNull(DLookup("[SecurityPassword]", "TableSecurity", "[SecurityPassword] ='" & PW & "'")) Then
MsgBox "The password you typed is incorrect"
ElseIf IsNull(DLookup("[SecurityFormSiteInformationModify]", "TableSecurity", "[SecurityFormSiteInformationModify] = -1")) Then
MsgBox "You don't have permission to modify"
Else
MsgBox "You can now do the modifications"
SiteName.Locked = False
end if
-----------------------------------------------------------
Maybe this is not in a good section, but i would like to know, when you have a boolean value(yes/no) in a table, how do you write it in the code because the line elsif doesnt work, it always gives me the message"you don't have permission to modify", even if the checkbox in my table is checked.
Thanks