P
paul
hi ive password protected individual form in my database;
i know its not the most efficient way of doing it but...
what i would like to be able to do is put in the code
somesort of look up thing so i can build a form that
allows easy amendment of the password rather than having
it as part of the code...
the code reads as follows at the moment
dim isgm as string
isgm = msgbox ("enter Password")
if Ucase isgm = "hotelpassword" then
do.cmd openform "frmHotel"
elseif isgm <> "hotelpassword" then
msgbox "incorrect password"
end if
in line 2 of the code, if Ucase isgm = "hotelpasswork"
then can i put in the "" a command that will tell the code
to look for a value in a table or something such like"
i know its not the most efficient way of doing it but...
what i would like to be able to do is put in the code
somesort of look up thing so i can build a form that
allows easy amendment of the password rather than having
it as part of the code...
the code reads as follows at the moment
dim isgm as string
isgm = msgbox ("enter Password")
if Ucase isgm = "hotelpassword" then
do.cmd openform "frmHotel"
elseif isgm <> "hotelpassword" then
msgbox "incorrect password"
end if
in line 2 of the code, if Ucase isgm = "hotelpasswork"
then can i put in the "" a command that will tell the code
to look for a value in a table or something such like"