Problem - MSAccess, 2007, trying to add password to 1 button on switchboard:
Okay Ive been trying to make the above code (posted by Hardcode) work for me to make 1 button on my main switchboard require a password to reach the second switchboard (admin functions). By using the switchboard editor I told the button's function to 'run code' and the name of the code in VB is simply module1 (as fa as I know) Ive got the code into VB, and saved it in a module... but when I click the button I get a message "The object doesn't contain the automation object 'module1.'" Am I oversimplifying here and forgetting some assumed step that coders know (I have never had any experience with VB)?
Okay Ive been trying to make the above code (posted by Hardcode) work for me to make 1 button on my main switchboard require a password to reach the second switchboard (admin functions). By using the switchboard editor I told the button's function to 'run code' and the name of the code in VB is simply module1 (as fa as I know) Ive got the code into VB, and saved it in a module... but when I click the button I get a message "The object doesn't contain the automation object 'module1.'" Am I oversimplifying here and forgetting some assumed step that coders know (I have never had any experience with VB)?
Comment