Hi,
I have database with two forms(Login form & Info form) and a table. When I login with a user name , it has to open the "Info form" with the corresponding username's record. Please help me to fix this. Below this the code what I have now. Thank you
I have database with two forms(Login form & Info form) and a table. When I login with a user name , it has to open the "Info form" with the corresponding username's record. Please help me to fix this. Below this the code what I have now. Thank you
Code:
'Open "Info_form" and pass the User_Name in OpenArgs parameter
DoCmd.OpenForm "Info_form", , , , , , Me.User_name
Forms("Info_Form").Button1.Visible = (Me.User_name = "Admin")
DoCmd.Close acForm, Me.Name
Comment