473,513 Members | 3,317 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to add password to 1 button on switchboard

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)?
Sep 30 '10 #1
6 4786
malcolmk
79 New Member
Just modify the switchboard button event handler as in the attached file.
Attached Files
File Type: zip myswitch.zip (29.8 KB, 334 views)
Nov 13 '10 #2
ADezii
8,834 Recognized Expert Expert
Hello malcolmk. Unless I am mistaken, the problem is a little more complicated than this in that the OP wishes to Open another Cascading Switchboard as opposed to a Standard Form. No matter how many Switchboards you have, there is still only a single, dynamically configured Switchboard. I am probably wrong, but only the OP can clarify this issue.
Nov 13 '10 #3
malcolmk
79 New Member
Ok I get what you are saying but the procedure is the same using real switchboards, modify the onclick to an event.
The event asks for a password and if correct continues to call the HandleButtonClick() procedure. I have attached a modified example. Hope this is what you are looking for.
password is still letmein
Attached Files
File Type: zip myswitch.zip (31.3 KB, 228 views)
Nov 13 '10 #4
ADezii
8,834 Recognized Expert Expert
If you are using Multiple Switchboards (True Switchboards, not Standard Forms), the Click() Event calls the HandleButtonClick() Procedure passing to it the Number of the Button clicked since this is constantly changing. I'll Attach a Demo as soon as I get a chance to illustrate my point. OK, got a chance to through together a really lousy Demo, see Attached. I put together a Demo for you in Record Time, it is attached.
Attached Files
File Type: zip Switchboard.zip (28.9 KB, 172 views)
Nov 13 '10 #5
malcolmk
79 New Member
Downloaded sample ADezii but on my system it simply demos switchboard navigation with no request for password?
!
Nov 14 '10 #6
ADezii
8,834 Recognized Expert Expert
The Attachment was just to illustrate Multiple Switchboards and how they interact and to also show how the Click() Event of the Command Buttons on a Switchboard cannot be used to verify Passwords.
Nov 14 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

20
3508
by: David | last post by:
Hi, I have a field from my recordset called RS("Password"). If I wish to display each character as an asterix '*' how do I go about it. I've seen the replace function, but cannot work out how to do it for how ever many characters there are in the record ? Appreciate your help
2
1935
by: adolf garlic | last post by:
I'm having a problem with a button click event being fired erroneously. My login.aspx page has the usual username/password boxes. There is also a link to click when you have filled these, plus a 'remember me' checkbox. Further down the page we have a 'email me my password' button. In addition there is also a small piece of client side...
2
4477
by: J | last post by:
Hello. I apologize if this isn't the appropriate group for this question but I was wondering if it's possible to allow regular windows domain users to change their passwords through an .asp page? I'm trying to figure out the best way to handle domain users to log into an .asp application tied with SQL Server 2000 on the back end since I keep...
7
2353
by: David T. Ashley | last post by:
Hi, For a web page, I want a SUBMIT button that commits the form data and a CANCEL button that goes to a different target (i.e. a different script). I haven't figured out how to do this, because the <FORM ACTION="... tag seems to make sure that any two submit controls in a form have to go to the same target. BTW, the CANCEL button does...
3
4287
by: dmc226 | last post by:
Hello, I am somewhat a newbie to Access and am trying to find out if there is a way to isolate one button on the switchboard with a password? That one switchboard option leads to another list of options that I don't want accessible to anyone else but my small department. I have looked in several reference books and many different places but...
14
4714
by: avanti | last post by:
Hi, I need to generate random alphanumeric password strings for the users in my application using Javascript. Are there any links that will have pointers on the same? Thanks, Avanti
9
12354
by: amanda27 | last post by:
Is there anyway to password protect a switchboard button the main switchboard so they can not get to the swtichboard it goes to or any of it's options? Please help I have been trying code I found on the internet but it does not seem to be working. Thanks
2
2844
by: Earl Anderson | last post by:
In Acc2003, I have a situation in which I have a main switchboard and upon pressing one of its buttons , takes the user to another sub hierarchical switchboard. Pressing one of these buttons could take the user to another switchboard or to forms within the topical heading of the switchboard. What I would like to see is a "Screen Tip" type...
9
2833
by: Adam Wolfe | last post by:
I am very new to HTML and I am making a web page for my father. I am trying to make a password protected page and I got that working but it will only advance to the password protected page if they click the log in button after entering the password, it will not work if they click enter I was wondering how to make this possible. Also is there a...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.