Hello, I'm still using Access 2003 as I find it more "developer friendly" than "user friendly".
I really didn't use openargs much, only to pass variables but not to do an action. Now I have a question:
I have a listbox on a form which passes the value to the subform (dont ask me why I use listbox instead of comdo). I have a command button to add a list box item if it is not in the list. The list box is bound to a table, and the button fires up the "addGroup" form as
It works OK but I want this form opened only when it is accessed by the forms that call it. I mean, the user should NOT be able to open that form on it's own, it should only be opened by the command button that calls it. I guessed passing a value in openArgs as like "allow" and testing that in the addGroup form onOpen event would do the thing but I get errors.
So, on form1, I have a cmd button to open a form2 to add records to another table. I want that form to be accessible ONLY by that button. The user should not open that form otherwise.
Can anyone help me on this please???
I really didn't use openargs much, only to pass variables but not to do an action. Now I have a question:
I have a listbox on a form which passes the value to the subform (dont ask me why I use listbox instead of comdo). I have a command button to add a list box item if it is not in the list. The list box is bound to a table, and the button fires up the "addGroup" form as
Code:
DoCmd.OpenForm "frm_addGroup", acNormal, "", "", acAdd, acDialog
So, on form1, I have a cmd button to open a form2 to add records to another table. I want that form to be accessible ONLY by that button. The user should not open that form otherwise.
Can anyone help me on this please???
Comment