G
Guest
dear friends,
i have an Open_up form with many command buttons on its header.
form based on a fields
1) loginname
2) password
my code goes like this
private sub form activate ()
if is null(loginname) and isnull(password) then msgbox ("xyz")
if password <> "balu" then msgbox("xyz")
command1.enable = false
else
command1.enable = true
end sub
in fact what i want is to enable and disable the command buttons basing on
some conditins how and which events to use
i have an Open_up form with many command buttons on its header.
form based on a fields
1) loginname
2) password
my code goes like this
private sub form activate ()
if is null(loginname) and isnull(password) then msgbox ("xyz")
if password <> "balu" then msgbox("xyz")
command1.enable = false
else
command1.enable = true
end sub
in fact what i want is to enable and disable the command buttons basing on
some conditins how and which events to use