aarondewberry
IS-IT--Management
To simplify a problem i have....
Lets say I have a table, (tbl1), with 2 fields in it, (AgentName) & (SecurityNumber).
I now have a form (frm1) with a control on it, (Agnt), that shows the 'AgentName' from tbl1.
I now have a button, (but1), that, when pressed, opens another form, (frm2).
But.... heres the question.
I only want to be able open frm2, using but1, when the SecurityNumber of the AgentName is "A".
Else
msgbox "Access denied........."
Remember SecurityNumber is not shown anywhere on frm1, only AgentName!
Any help would be appreciated.
Thanks
Lets say I have a table, (tbl1), with 2 fields in it, (AgentName) & (SecurityNumber).
I now have a form (frm1) with a control on it, (Agnt), that shows the 'AgentName' from tbl1.
I now have a button, (but1), that, when pressed, opens another form, (frm2).
But.... heres the question.
I only want to be able open frm2, using but1, when the SecurityNumber of the AgentName is "A".
Else
msgbox "Access denied........."
Remember SecurityNumber is not shown anywhere on frm1, only AgentName!
Any help would be appreciated.
Thanks