If Y = 2 Then
DoCmd.OpenForm "frm a"
Missing line of Code :What I want code to do here is (If button c is clicked on frm a then following should happen)
DoCmd.OpenForm "frm b"
Forms!frm b!txtUserID = X
Forms!frm b!txtUsername = txtUsername
Forms!frm b!combo1.Visible = False
As both forms gets open simultaneously and menu menu which is form a goes at the back of form b